Late-breaking NEWS for late-breaking fixes
[sbcl.git] / src / runtime / ppc-darwin-os.h
blob36ec9d4d27e4ee1185bb68ec628770d7b911ceac
1 #ifndef _PPC_DARWIN_OS_H
2 #define _PPC_DARWIN_OS_H
4 #include "darwin-os.h"
6 typedef unsigned int os_context_register_t;
7 #include "arch-os-generic.inc"
9 /* On OS X 10.5, the field names for the thread state have changed and
10 * now are prepended with __. Use some #define hackery to deal with
11 * this.
13 #if __DARWIN_UNIX03
15 #define PPC_DARWIN_REGIFY(foo) __ ## foo
17 typedef ppc_thread_state_t ppc_ss_struct_t;
19 #else
21 #define PPC_DARWIN_REGIFY(foo) foo
23 typedef ppc_saved_state_t ppc_ss_struct_t;
25 #endif /* __DARWIN_UNIX03 */
27 #define OS_CONTEXT_PC(context) context->uc_mcontext->PPC_DARWIN_REGIFY(ss).PPC_DARWIN_REGIFY(srr0)
29 #endif /* _PPC_DARWIN_OS_H */