Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/ucontext.h
Show All 35 Lines | |||||
#include <sys/signal.h> | #include <sys/signal.h> | ||||
#include <machine/ucontext.h> | #include <machine/ucontext.h> | ||||
#include <sys/_ucontext.h> | #include <sys/_ucontext.h> | ||||
#define UCF_SWAPPED 0x00000001 /* Used by swapcontext(3). */ | #define UCF_SWAPPED 0x00000001 /* Used by swapcontext(3). */ | ||||
#if defined(_KERNEL) && defined(COMPAT_FREEBSD4) | #if defined(_KERNEL) && defined(COMPAT_FREEBSD4) | ||||
#if defined(__i386__) | #if defined(__i386__) | ||||
struct freebsd4_ucontext { | struct freebsd4_ucontext { | ||||
kib: Could we move this to i386/include/ucontext.h ? | |||||
Done Inline ActionsHmmm, I'll try that as a followup commit. It matches that freebsd4_sigframe is only in the i386 header. jhb: Hmmm, I'll try that as a followup commit. It matches that freebsd4_sigframe is only in the… | |||||
Not Done Inline ActionsI think I tried in the freebsd32 syscall cleanups and ran into an issue without an immediate solution, but it's surely the right thing to do if we can figure out how. brooks: I think I tried in the freebsd32 syscall cleanups and ran into an issue without an immediate… | |||||
sigset_t uc_sigmask; | sigset_t uc_sigmask; | ||||
struct mcontext4 uc_mcontext; | struct freebsd4_mcontext uc_mcontext; | ||||
struct freebsd4_ucontext *uc_link; | struct freebsd4_ucontext *uc_link; | ||||
stack_t uc_stack; | stack_t uc_stack; | ||||
int __spare__[8]; | int __spare__[8]; | ||||
}; | }; | ||||
#else /* __i386__ */ | #else /* __i386__ */ | ||||
#define freebsd4_ucontext ucontext | #define freebsd4_ucontext ucontext | ||||
#endif /* __i386__ */ | #endif /* __i386__ */ | ||||
#endif /* _KERNEL */ | #endif /* _KERNEL */ | ||||
Show All 38 Lines |
Could we move this to i386/include/ucontext.h ?