1.0.27.46: Fix build on systems with "src" in the path.
[sbcl/tcr.git] / src / runtime / x86-64-darwin-os.h
blob22cde5edd21159d9f69e91f0ad8965a4eb0aed71
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) &context->uc_mcontext->__ss.__##stem
15 #else
16 #define CONTEXT_ADDR_FROM_STEM(stem) &context->uc_mcontext->ss.stem
17 #endif /* __DARWIN_UNIX03 */
19 #endif /* _X86_64_DARWIN_OS_H */