X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fx86-bsd-os.h;h=dbd601f81fc3db7715d94528929cf6a9c2cee7b9;hb=d63d80e637e9058ff5db7a10c267796ff7970ba1;hp=3ff9f5237fb8a36c52d9be82b3f2b274218cae2d;hpb=bd455348d39bee562296741689882dcb97c46ba3;p=sbcl.git diff --git a/src/runtime/x86-bsd-os.h b/src/runtime/x86-bsd-os.h index 3ff9f52..dbd601f 100644 --- a/src/runtime/x86-bsd-os.h +++ b/src/runtime/x86-bsd-os.h @@ -8,7 +8,8 @@ typedef int os_context_register_t; -static inline os_context_t *arch_os_get_context(void **void_context) { +static inline os_context_t *arch_os_get_context(void **void_context) +{ return (os_context_t *) *void_context; } @@ -27,6 +28,9 @@ static inline os_context_t *arch_os_get_context(void **void_context) { #endif #if defined LISP_FEATURE_FREEBSD +#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