1.0.4.31: remove *internal-error-context*
[sbcl.git] / src / runtime / x86-bsd-os.h
index e550f33..3ff9f52 100644 (file)
@@ -1,6 +1,13 @@
 #ifndef _X86_BSD_OS_H
 #define _X86_BSD_OS_H
 
+#ifdef LISP_FEATURE_FREEBSD
+#include <machine/segments.h>
+#include <machine/cpufunc.h>
+#endif
+
+typedef int os_context_register_t;
+
 static inline os_context_t *arch_os_get_context(void **void_context) {
     return (os_context_t *) *void_context;
 }
@@ -19,14 +26,9 @@ static inline os_context_t *arch_os_get_context(void **void_context) {
 #error unsupported BSD variant
 #endif
 
-#if defined(LISP_FEATURE_SB_THREAD)
-
 #if defined LISP_FEATURE_FREEBSD
-/* FIXME: why is this only done for SB-THREAD? */
 #define RESTORE_FP_CONTROL_FROM_CONTEXT
 void os_restore_fp_control(os_context_t *context);
 #endif
 
-#endif
-
 #endif /* _X86_BSD_OS_H */