X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fruntime%2Fx86-64-darwin-os.h;h=22cde5edd21159d9f69e91f0ad8965a4eb0aed71;hb=ba12c5c0420f28250ef4931b47af92c6d7963195;hp=ff3d342e99e7cacb2c2c76ba1641a8e5f1e12a09;hpb=0f234877047c56ca945fe54e9e77a9cc2c8141cb;p=sbcl.git diff --git a/src/runtime/x86-64-darwin-os.h b/src/runtime/x86-64-darwin-os.h index ff3d342..22cde5e 100644 --- a/src/runtime/x86-64-darwin-os.h +++ b/src/runtime/x86-64-darwin-os.h @@ -5,11 +5,15 @@ typedef register_t os_context_register_t; -static inline os_context_t *arch_os_get_context(void **void_context) { +static inline os_context_t *arch_os_get_context(void **void_context) +{ return (os_context_t *) *void_context; } +#if __DARWIN_UNIX03 +#define CONTEXT_ADDR_FROM_STEM(stem) &context->uc_mcontext->__ss.__##stem +#else #define CONTEXT_ADDR_FROM_STEM(stem) &context->uc_mcontext->ss.stem -#define DARWIN_FIX_CONTEXT(context) +#endif /* __DARWIN_UNIX03 */ #endif /* _X86_64_DARWIN_OS_H */