2 * This is the PowerPC/Darwin incarnation of arch-dependent
3 * OS-dependent routines. See also "bsdos.c".
7 * This software is part of the SBCL system. See the README file for
10 * This software is derived from the CMU CL system, which was
11 * written at Carnegie Mellon University and released into the
12 * public domain. The software is in the public domain and is
13 * provided with absolutely no warranty. See the COPYING and CREDITS
14 * files for more information.
23 #include <mach-o/dyld.h>
26 #ifdef LISP_FEATURE_SB_THREAD
27 #error "Define threading support functions"
29 int arch_os_thread_init(struct thread *thread) {
30 return 1; /* success */
32 int arch_os_thread_cleanup(struct thread *thread) {
33 return 1; /* success */
37 os_context_register_t *
38 os_context_register_addr(os_context_t *context, int offset)
40 ppc_saved_state_t *state = &context->uc_mcontext->ss;
108 return &context->uc_mcontext->es.dar;
111 return &context->uc_mcontext->es.dsisr;
115 os_context_register_t *
116 os_context_lr_addr(os_context_t *context)
118 return &context->uc_mcontext->ss.lr;
121 os_context_register_t *
122 os_context_pc_addr(os_context_t *context)
124 return &context->uc_mcontext->ss.srr0;
128 os_flush_icache(os_vm_address_t address, os_vm_size_t length)
131 ppc_flush_icache(address,length);