1 #ifndef _PPC_DARWIN_OS_H
2 #define _PPC_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
15 #define PPC_DARWIN_REGIFY(foo) __ ## foo
17 typedef ppc_thread_state_t ppc_ss_struct_t
;
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 */