Abstract immediate loading on x86-64.
[sbcl.git] / src / runtime / x86-64-darwin-os.h
blob2433c2de22531bbc736d588f541bc6baace81d77
1 #ifndef _X86_64_DARWIN_OS_H
2 #define _X86_64_DARWIN_OS_H
4 #include "darwin-os.h"
6 typedef register_t os_context_register_t;
8 static inline os_context_t *arch_os_get_context(void **void_context)
10 return (os_context_t *) *void_context;
13 #if __DARWIN_UNIX03
14 #define CONTEXT_ADDR_FROM_STEM(stem) (os_context_register_t*)&context->uc_mcontext->__ss.__##stem
15 #else
16 #define CONTEXT_ADDR_FROM_STEM(stem) &context->uc_mcontext->ss.stem
17 #endif /* __DARWIN_UNIX03 */
19 #define RESTORE_FP_CONTROL_FROM_CONTEXT
20 void os_restore_fp_control(os_context_t *context);
22 #endif /* _X86_64_DARWIN_OS_H */