X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fx86-bsd-os.h;h=dc9d9f785f3e713f9b9baa5ab4ecd7c2f20136ed;hb=7a3dd48161181e84c2dae473586781c2c55d27d7;hp=8e8b291bc5743421d2bce2a4c0f0c3249c322c53;hpb=b6537fc9d37ad800f8faba89ebbde7fdf8910d2a;p=sbcl.git diff --git a/src/runtime/x86-bsd-os.h b/src/runtime/x86-bsd-os.h index 8e8b291..dc9d9f7 100644 --- a/src/runtime/x86-bsd-os.h +++ b/src/runtime/x86-bsd-os.h @@ -6,7 +6,10 @@ #include #endif -static inline os_context_t *arch_os_get_context(void **void_context) { +typedef int os_context_register_t; + +static inline os_context_t *arch_os_get_context(void **void_context) +{ return (os_context_t *) *void_context; } @@ -25,6 +28,14 @@ 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 + +#if defined LISP_FEATURE_OPENBSD #define RESTORE_FP_CONTROL_FROM_CONTEXT void os_restore_fp_control(os_context_t *context); #endif