aboutsummaryrefslogtreecommitdiff
path: root/sys/i386/include/ucontext.h
diff options
context:
space:
mode:
authorMarcel Moolenaar <marcel@FreeBSD.org>1999-10-04 19:33:58 +0000
committerMarcel Moolenaar <marcel@FreeBSD.org>1999-10-04 19:33:58 +0000
commitc5c6b7b38e4bca2844dc9f7e10f5791100c72b4c (patch)
tree0d11411c28fcc84ea9cc30194ec834ac5eb2fd6d /sys/i386/include/ucontext.h
parenta93fdaac212fa9fefad56ee1cf399d0814f943b4 (diff)
Notes
Diffstat (limited to 'sys/i386/include/ucontext.h')
-rw-r--r--sys/i386/include/ucontext.h21
1 files changed, 14 insertions, 7 deletions
diff --git a/sys/i386/include/ucontext.h b/sys/i386/include/ucontext.h
index bdf2e1df2307..0d7271621232 100644
--- a/sys/i386/include/ucontext.h
+++ b/sys/i386/include/ucontext.h
@@ -29,15 +29,22 @@
*/
#ifndef _MACHINE_UCONTEXT_H_
-#define _MACHINE_UCONTEXT_H_ 1
+#define _MACHINE_UCONTEXT_H_
#include <machine/frame.h>
-typedef struct {
- int mc_gs; /* %gs */
- struct trapframe mc_tf; /* trapframe */
- int mc_fpregs[28]; /* env87 + fpacc87 + u_long */
- int __spare__[17];
+typedef struct __mcontext {
+ /*
+ * The first 3 fields must match the definition of
+ * sigcontext. So that we can support sigcontext
+ * and ucontext_t at the same time.
+ */
+ int mc_onstack; /* XXX - sigcontext compat. */
+ int mc_gs;
+ struct trapframe mc_tf;
+
+ int mc_fpregs[28]; /* env87 + fpacc87 + u_long */
+ int __spare__[17];
} mcontext_t;
-#endif /* _MACHINE_UCONTEXT_H_ */
+#endif /* !_MACHINE_UCONTEXT_H_ */