summaryrefslogtreecommitdiffstats
path: root/sys/i386/include/sigframe.h
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2013-02-20 17:39:52 +0000
committerkib <kib@FreeBSD.org>2013-02-20 17:39:52 +0000
commitcda69c96226e8d1ab1647199344302d2d5f4cf02 (patch)
treee11ca597288ba6690ebab08a041053e2d8a5a6e8 /sys/i386/include/sigframe.h
parentd04ffbb5a5cb5fa49847b87fbff94d4c6be4bfe9 (diff)
downloadFreeBSD-src-cda69c96226e8d1ab1647199344302d2d5f4cf02.zip
FreeBSD-src-cda69c96226e8d1ab1647199344302d2d5f4cf02.tar.gz
Convert machine/elf.h, machine/frame.h, machine/sigframe.h,
machine/signal.h and machine/ucontext.h into common x86 includes, copying from amd64 and merging with i386. Kernel-only compat definitions are kept in the i386/include/sigframe.h and i386/include/signal.h, to reduce amd64 kernel namespace pollution. The amd64 compat uses its own definitions so far. The _MACHINE_ELF_WANT_32BIT definition is to allow the sys/boot/userboot/userboot/elf32_freebsd.c to use i386 ELF definitions on the amd64 compile host. The same hack could be usefully abused by other code too.
Diffstat (limited to 'sys/i386/include/sigframe.h')
-rw-r--r--sys/i386/include/sigframe.h21
1 files changed, 1 insertions, 20 deletions
diff --git a/sys/i386/include/sigframe.h b/sys/i386/include/sigframe.h
index 98be731..8de4664 100644
--- a/sys/i386/include/sigframe.h
+++ b/sys/i386/include/sigframe.h
@@ -89,25 +89,6 @@ struct sigframe4 {
#endif
#endif
-struct sigframe {
- /*
- * The first four members may be used by applications.
- *
- * NOTE: The 4th argument is undocumented, ill commented
- * on and seems to be somewhat BSD "standard". Handlers
- * installed with sigvec may be using it.
- */
- register_t sf_signum;
- register_t sf_siginfo; /* code or pointer to sf_si */
- register_t sf_ucontext; /* points to sf_uc */
- register_t sf_addr; /* undocumented 4th arg */
-
- union {
- __siginfohandler_t *sf_action;
- __sighandler_t *sf_handler;
- } sf_ahu;
- ucontext_t sf_uc; /* = *sf_ucontext */
- siginfo_t sf_si; /* = *sf_siginfo (SA_SIGINFO case) */
-};
+#include <x86/sigframe.h>
#endif /* !_MACHINE_SIGFRAME_H_ */
OpenPOWER on IntegriCloud