X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fx86-64-bsd-os.h;h=9db3ae71108b2894fee6e06ee258fdb63c268833;hb=f962bad9a3dcfa165fe359e60be48c636a1622ec;hp=327922a4ff7d486381b511ca01399328b67cb61b;hpb=bd455348d39bee562296741689882dcb97c46ba3;p=sbcl.git diff --git a/src/runtime/x86-64-bsd-os.h b/src/runtime/x86-64-bsd-os.h index 327922a..9db3ae7 100644 --- a/src/runtime/x86-64-bsd-os.h +++ b/src/runtime/x86-64-bsd-os.h @@ -7,7 +7,8 @@ typedef register_t 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; } @@ -40,4 +41,9 @@ arch_os_context_mxcsr_addr(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 + #endif /* _X86_64_BSD_OS_H */