ucontext.h revision 51792
151792Smarcel/*- 251792Smarcel * Copyright (c) 1999 Marcel Moolenaar 351792Smarcel * All rights reserved. 451792Smarcel * 551792Smarcel * Redistribution and use in source and binary forms, with or without 651792Smarcel * modification, are permitted provided that the following conditions 751792Smarcel * are met: 851792Smarcel * 1. Redistributions of source code must retain the above copyright 951792Smarcel * notice, this list of conditions and the following disclaimer 1051792Smarcel * in this position and unchanged. 1151792Smarcel * 2. Redistributions in binary form must reproduce the above copyright 1251792Smarcel * notice, this list of conditions and the following disclaimer in the 1351792Smarcel * documentation and/or other materials provided with the distribution. 1451792Smarcel * 3. The name of the author may not be used to endorse or promote products 1551792Smarcel * derived from this software without specific prior written permission. 1651792Smarcel * 1751792Smarcel * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 1851792Smarcel * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 1951792Smarcel * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 2051792Smarcel * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 2151792Smarcel * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 2251792Smarcel * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 2351792Smarcel * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2451792Smarcel * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2551792Smarcel * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 2651792Smarcel * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 2751792Smarcel * 2851792Smarcel * $FreeBSD: head/sys/i386/include/ucontext.h 51792 1999-09-29 15:06:27Z marcel $ 2951792Smarcel */ 3051792Smarcel 3151792Smarcel#ifndef _MACHINE_UCONTEXT_H_ 3251792Smarcel#define _MACHINE_UCONTEXT_H_ 1 3351792Smarcel 3451792Smarcel#include <machine/frame.h> 3551792Smarcel 3651792Smarceltypedef struct { 3751792Smarcel int mc_gs; /* %gs */ 3851792Smarcel struct trapframe mc_tf; /* trapframe */ 3951792Smarcel int mc_fpregs[28]; /* env87 + fpacc87 + u_long */ 4051792Smarcel int __spare__[17]; 4151792Smarcel} mcontext_t; 4251792Smarcel 4351792Smarcel#endif /* _MACHINE_UCONTEXT_H_ */ 44