1 #ifndef _PPC_DARWIN_OS_H
2 #define _PPC_DARWIN_OS_H
6 typedef unsigned int os_context_register_t;
8 static inline os_context_t *arch_os_get_context(void **void_context)
10 return (os_context_t *) *void_context;
12 /* On OS X 10.5, the field names for the thread state have changed and
13 * now are prepended with __. Use some #define hackery to deal with
18 #define PPC_DARWIN_REGIFY(foo) __ ## foo
20 typedef ppc_thread_state_t ppc_ss_struct_t;
24 #define PPC_DARWIN_REGIFY(foo) foo
26 typedef ppc_saved_state_t ppc_ss_struct_t;
28 #endif /* __DARWIN_UNIX03 */
30 #endif /* _PPC_DARWIN_OS_H */