Commit be887b3e authored by John Baldwin's avatar John Baldwin
Browse files

Move struct freebsd4_ucontext to sys/i386/include/ucontext.h.

Requested by:	kib
Reviewed by:	brooks, imp, kib
Sponsored by:	The University of Cambridge, Google Inc.
Differential Revision:	https://reviews.freebsd.org/D33886
parent bd7630ef
......@@ -58,6 +58,14 @@ struct freebsd4_mcontext {
__register_t mc_fpregs[28]; /* env87 + fpacc87 + u_long */
__register_t __spare__[17];
};
struct freebsd4_ucontext {
sigset_t uc_sigmask;
struct freebsd4_mcontext uc_mcontext;
struct freebsd4_ucontext *uc_link;
stack_t uc_stack;
int __spare__[8];
};
#endif
#include <x86/ucontext.h>
......
......@@ -39,20 +39,6 @@
#define UCF_SWAPPED 0x00000001 /* Used by swapcontext(3). */
#if defined(_KERNEL) && defined(COMPAT_FREEBSD4)
#if defined(__i386__)
struct freebsd4_ucontext {
sigset_t uc_sigmask;
struct freebsd4_mcontext uc_mcontext;
struct freebsd4_ucontext *uc_link;
stack_t uc_stack;
int __spare__[8];
};
#else /* __i386__ */
#define freebsd4_ucontext ucontext
#endif /* __i386__ */
#endif /* _KERNEL */
#ifndef _KERNEL
__BEGIN_DECLS
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment