Change immobile space free pointers to alien vars
[sbcl.git] / src / runtime / x86-64-darwin-os.h
blob13959006d4d5026b348259d79ae366c26dbb35cd
1 #ifndef _X86_64_DARWIN_OS_H
2 #define _X86_64_DARWIN_OS_H
4 #include "darwin-os.h"
6 #define X86_64_SIGFPE_FIXUP /* Darwin doesn't handle accrued bits correctly. */
8 static inline unsigned int *
9 arch_os_context_mxcsr_addr(os_context_t *context)
11 return &context->uc_mcontext->__fs.__fpu_mxcsr;
15 typedef register_t os_context_register_t;
17 static inline os_context_t *arch_os_get_context(void **void_context)
19 return (os_context_t *) *void_context;
22 #if __DARWIN_UNIX03
23 #define CONTEXT_ADDR_FROM_STEM(stem) (os_context_register_t*)&context->uc_mcontext->__ss.__##stem
24 #else
25 #define CONTEXT_ADDR_FROM_STEM(stem) &context->uc_mcontext->ss.stem
26 #endif /* __DARWIN_UNIX03 */
28 #define RESTORE_FP_CONTROL_FROM_CONTEXT
29 void os_restore_fp_control(os_context_t *context);
31 #endif /* _X86_64_DARWIN_OS_H */