X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fppc-darwin-os.h;h=984e932986958de9b3a7d09969aca56ed87976af;hb=c75cf4e142aaf9a72433ea6db778d8111a0b1c83;hp=a40699bd82d9e65f440a9e649f33702bf928e8eb;hpb=506253505641855dc8bb87033f7af894904f848b;p=sbcl.git diff --git a/src/runtime/ppc-darwin-os.h b/src/runtime/ppc-darwin-os.h index a40699b..984e932 100644 --- a/src/runtime/ppc-darwin-os.h +++ b/src/runtime/ppc-darwin-os.h @@ -1,9 +1,12 @@ #ifndef _PPC_DARWIN_OS_H #define _PPC_DARWIN_OS_H -static inline os_context_t *arch_os_get_context(void **void_context) { +typedef unsigned int os_context_register_t; + +static inline os_context_t *arch_os_get_context(void **void_context) +{ return (os_context_t *) *void_context; } - +#define DARWIN_FIX_CONTEXT(c) (c->uc_mcontext->ss.xer)^=0x80; #endif /* _PPC_DARWIN_OS_H */