1150022Srwatson/*- 2150022Srwatson * Copyright (c) 1999 Marcel Moolenaar 3150022Srwatson * All rights reserved. 4150022Srwatson * 5150022Srwatson * Redistribution and use in source and binary forms, with or without 6150022Srwatson * modification, are permitted provided that the following conditions 7150022Srwatson * are met: 8150022Srwatson * 1. Redistributions of source code must retain the above copyright 9150022Srwatson * notice, this list of conditions and the following disclaimer 10150022Srwatson * in this position and unchanged. 11150022Srwatson * 2. Redistributions in binary form must reproduce the above copyright 12150022Srwatson * notice, this list of conditions and the following disclaimer in the 13150022Srwatson * documentation and/or other materials provided with the distribution. 14150022Srwatson * 3. The name of the author may not be used to endorse or promote products 15150022Srwatson * derived from this software without specific prior written permission. 16150022Srwatson * 17150022Srwatson * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 18150022Srwatson * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 19150022Srwatson * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 20150022Srwatson * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21150022Srwatson * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22150022Srwatson * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23150022Srwatson * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24150022Srwatson * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25150022Srwatson * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26150022Srwatson * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27150022Srwatson * 28150022Srwatson * $FreeBSD: releng/10.3/sys/i386/include/ucontext.h 247047 2013-02-20 17:39:52Z kib $ 29150059Srwatson */ 30150059Srwatson 31150091Srwatson#ifndef _MACHINE_UCONTEXT_H_ 32150022Srwatson#define _MACHINE_UCONTEXT_H_ 33150022Srwatson 34150059Srwatson#if defined(_KERNEL) && defined(COMPAT_FREEBSD4) 35150022Srwatsonstruct mcontext4 { 36150022Srwatson __register_t mc_onstack; /* XXX - sigcontext compat. */ 37150022Srwatson __register_t mc_gs; /* machine state (struct trapframe) */ 38150022Srwatson __register_t mc_fs; 39150022Srwatson __register_t mc_es; 40150022Srwatson __register_t mc_ds; 41150022Srwatson __register_t mc_edi; 42150022Srwatson __register_t mc_esi; 43150022Srwatson __register_t mc_ebp; 44150022Srwatson __register_t mc_isp; 45150022Srwatson __register_t mc_ebx; 46150022Srwatson __register_t mc_edx; 47150022Srwatson __register_t mc_ecx; 48150022Srwatson __register_t mc_eax; 49150022Srwatson __register_t mc_trapno; 50150022Srwatson __register_t mc_err; 51150022Srwatson __register_t mc_eip; 52150022Srwatson __register_t mc_cs; 53150022Srwatson __register_t mc_eflags; 54150022Srwatson __register_t mc_esp; /* machine state */ 55150022Srwatson __register_t mc_ss; 56150022Srwatson __register_t mc_fpregs[28]; /* env87 + fpacc87 + u_long */ 57150022Srwatson __register_t __spare__[17]; 58150022Srwatson}; 59150022Srwatson#endif 60150022Srwatson 61150022Srwatson#include <x86/ucontext.h> 62150022Srwatson 63150022Srwatson#endif /* !_MACHINE_UCONTEXT_H_ */ 64150022Srwatson