X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fx86-bsd-os.h;h=dbd601f81fc3db7715d94528929cf6a9c2cee7b9;hb=d63d80e637e9058ff5db7a10c267796ff7970ba1;hp=e550f33a2cdfababdae2f39db3401500041fe82a;hpb=402958f92506b9d3de852601b8c1ccb99b5ee558;p=sbcl.git diff --git a/src/runtime/x86-bsd-os.h b/src/runtime/x86-bsd-os.h index e550f33..dbd601f 100644 --- 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 -static inline os_context_t *arch_os_get_context(void **void_context) { +#ifdef LISP_FEATURE_FREEBSD +#include +#include +#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 +27,12 @@ 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? */ +#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 -#endif - #endif /* _X86_BSD_OS_H */