1.0.45.22: non-racy RUN-PROGRAM :PTY on OpenBSD
[sbcl.git] / src / runtime / x86-64-darwin-os.h
1 #ifndef _X86_64_DARWIN_OS_H
2 #define _X86_64_DARWIN_OS_H
3
4 #include "darwin-os.h"
5
6 typedef register_t os_context_register_t;
7
8 static inline os_context_t *arch_os_get_context(void **void_context)
9 {
10     return (os_context_t *) *void_context;
11 }
12
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 */
18
19 #endif /* _X86_64_DARWIN_OS_H */