/* -*-C-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/uxtrap.h,v 1.11 1991/07/24 19:48:26 jinx Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/uxtrap.h,v 1.12 1992/02/14 22:28:11 jinx Exp $
-Copyright (c) 1990-91 Massachusetts Institute of Technology
+Copyright (c) 1990-1992 Massachusetts Institute of Technology
This material was developed by the Scheme project at the Massachusetts
Institute of Technology, Department of Electrical Engineering and
}
#endif /* hp9000s300 */
-
+\f
#ifdef hp9000s800
#include <sys/sysmacros.h>
}
#endif /* hp9000s800 */
-
+\f
#ifdef sun3
#define HAVE_FULL_SIGCONTEXT
}
#endif /* sun3 */
-\f
+
#ifdef vax
#define HAVE_FULL_SIGCONTEXT
}
#endif /* vax */
-
+\f
#ifdef mips
#ifndef _SYSV4
}
#else /* _SYSV4 */
-
+\f
/* Many of these definitions are not specific to the MIPS processor. */
#include <sys/siginfo.h>
#endif /* _SYSV4 */
#endif /* mips */
+\f
+#ifdef i386
+/* The following are true for Mach (BSD 4.3 compatible).
+ I don't know about SCO or other versions.
+ */
+
+#define HAVE_FULL_SIGCONTEXT
+#define PROCESSOR_NREGS 8
+#define FULL_SIGCONTEXT_NREGS 8
+
+#define SIGCONTEXT sigcontext
+#define SIGCONTEXT_SP(scp) ((scp)->sc_esp)
+#define SIGCONTEXT_PC(scp) ((scp)->sc_eip)
+#define FULL_SIGCONTEXT_RFREE(scp) ((scp)->sc_edi)
+#define FULL_SIGCONTEXT_FIRST_REG(scp) (&((scp)->sc_edi))
+
+/* INITIALIZE_UX_SIGNAL_CODES should be defined. */
+
+#endif /* i386 */
#ifndef SIGINFO_T
#define SIGINFO_T int