Preliminary work towards threads on win32
[sbcl.git] / src / runtime / ppc-darwin-os.h
blob119dcbdde449e0037dc6ddcdb9428544e8e6eb29
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;
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
14 * this.
16 #if __DARWIN_UNIX03
18 #define PPC_DARWIN_REGIFY(foo) __ ## foo
20 typedef ppc_thread_state_t ppc_ss_struct_t;
22 #else
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 */