X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fhppa-linux-os.c;h=3cc5417ca35e9202e8147fae7da0a25b7d92362a;hb=0f3a5f2e8886d18d0b4f6485c38a42be629422ae;hp=a6b39dcd4a07308557e3f7659b613be73e3e3cf4;hpb=8a19c6876412b8ad1cf729297c2a373d63a0d0ec;p=sbcl.git diff --git a/src/runtime/hppa-linux-os.c b/src/runtime/hppa-linux-os.c index a6b39dc..3cc5417 100644 --- a/src/runtime/hppa-linux-os.c +++ b/src/runtime/hppa-linux-os.c @@ -17,6 +17,7 @@ #include #include #include +#include "sbcl.h" #include "./signal.h" #include "os.h" #include "arch.h" @@ -24,7 +25,6 @@ #include "interrupt.h" #include "interr.h" #include "lispregs.h" -#include "sbcl.h" #include #include @@ -37,20 +37,30 @@ #include "validate.h" size_t os_vm_page_size; +#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) { if (offset == 0) { - /* KLUDGE: I'm not sure, but it's possible that Linux puts the + /* KLUDGE: I'm not sure, but it's possible that Linux puts the contents of the Processor Status Word in the (wired-zero) slot in the mcontext. In any case, the following is unlikely to do any harm: */ - static int zero; - zero = 0; - return &zero; + static int zero; + zero = 0; + return &zero; } else { - return &(((struct sigcontext *) &(context->uc_mcontext))->sc_gr[offset]); + return &(((struct sigcontext *) &(context->uc_mcontext))->sc_gr[offset]); } } @@ -73,13 +83,13 @@ os_context_sigmask_addr(os_context_t *context) return &(context->uc_sigmask); } -void +void os_restore_fp_control(os_context_t *context) { /* FIXME: Probably do something. */ } -void +void os_flush_icache(os_vm_address_t address, os_vm_size_t length) { /* FIXME: Maybe this is OK. */