X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fhppa-linux-os.c;h=3cc5417ca35e9202e8147fae7da0a25b7d92362a;hb=eac461c1f1ca91cfe282c779291d582ed6b336cb;hp=f69b16bc3870224ff9d398a33f5259bac90b6ff3;hpb=34dcb46f78a01d543756703d7ccdf3d999a134d0;p=sbcl.git diff --git a/src/runtime/hppa-linux-os.c b/src/runtime/hppa-linux-os.c index f69b16b..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 @@ -40,9 +40,6 @@ size_t os_vm_page_size; #ifdef LISP_FEATURE_SB_THREAD #error "Define threading support functions" #else -struct thread *arch_os_get_current_thread() { - return all_threads; -} int arch_os_thread_init(struct thread *thread) { return 1; /* success */ } @@ -55,15 +52,15 @@ 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]); } } @@ -86,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. */