1 #ifndef _X86_64_DARWIN_OS_H
2 #define _X86_64_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;
14 #define CONTEXT_ADDR_FROM_STEM(stem) &context->uc_mcontext->__ss.__##stem
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 */