projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
1.0.15: release, will be tagged as sbcl_1_0_15
[sbcl.git]
/
src
/
runtime
/
x86-bsd-os.h
diff --git
a/src/runtime/x86-bsd-os.h
b/src/runtime/x86-bsd-os.h
index
e550f33
..
dbd601f
100644
(file)
--- a/
src/runtime/x86-bsd-os.h
+++ b/
src/runtime/x86-bsd-os.h
@@
-1,7
+1,15
@@
#ifndef _X86_BSD_OS_H
#define _X86_BSD_OS_H
#ifndef _X86_BSD_OS_H
#define _X86_BSD_OS_H
-static inline os_context_t *arch_os_get_context(void **void_context) {
+#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;
}
return (os_context_t *) *void_context;
}
@@
-19,14
+27,12
@@
static inline os_context_t *arch_os_get_context(void **void_context) {
#error unsupported BSD variant
#endif
#error unsupported BSD variant
#endif
-#if defined(LISP_FEATURE_SB_THREAD)
-
#if defined LISP_FEATURE_FREEBSD
#if defined LISP_FEATURE_FREEBSD
-/* FIXME: why is this only done for SB-THREAD? */
+#if defined(LISP_FEATURE_RESTORE_TLS_SEGMENT_REGISTER_FROM_CONTEXT)
+void os_restore_tls_segment_register(os_context_t *context);
+#endif
#define RESTORE_FP_CONTROL_FROM_CONTEXT
void os_restore_fp_control(os_context_t *context);
#endif
#define RESTORE_FP_CONTROL_FROM_CONTEXT
void os_restore_fp_control(os_context_t *context);
#endif
-#endif
-
#endif /* _X86_BSD_OS_H */
#endif /* _X86_BSD_OS_H */