X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fppc-darwin-os.c;h=f9ab445bf9837c5b7a880e6f92fdb383a306e78c;hb=b28aadc5bd34a0d9fa0ff15c52b2b4164d955831;hp=6b3ab7e98288998d82cc887cb7723e95c367a15e;hpb=79cc569a97e444389350ea3f5b1017374fe16bec;p=sbcl.git diff --git a/src/runtime/ppc-darwin-os.c b/src/runtime/ppc-darwin-os.c index 6b3ab7e..f9ab445 100644 --- a/src/runtime/ppc-darwin-os.c +++ b/src/runtime/ppc-darwin-os.c @@ -16,10 +16,24 @@ #include "sbcl.h" #include "globals.h" +#include "runtime.h" #include #include +#include +#include #include "bsd-os.h" +#ifdef LISP_FEATURE_SB_THREAD +#error "Define threading support functions" +#else +int arch_os_thread_init(struct thread *thread) { + return 1; /* success */ +} +int arch_os_thread_cleanup(struct thread *thread) { + return 1; /* success */ +} +#endif + os_context_register_t * os_context_register_addr(os_context_t *context, int offset) { @@ -104,9 +118,16 @@ os_context_lr_addr(os_context_t *context) return &context->uc_mcontext->ss.lr; } +os_context_register_t * +os_context_pc_addr(os_context_t *context) +{ + return &context->uc_mcontext->ss.srr0; +} + void os_flush_icache(os_vm_address_t address, os_vm_size_t length) { /* see ppc-arch.c */ ppc_flush_icache(address,length); } +