X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fmips-linux-os.c;h=1b9bed715cfb832a68e2fdf988dffc9f772a8e4a;hb=1f763fa8eca17771d2c091094855fcb8b84d66da;hp=f92a232718fda68a03ced95f56c97507289bcefd;hpb=4ae1b794a5d6a90794468cf8017f5307f2c30dfe;p=sbcl.git diff --git a/src/runtime/mips-linux-os.c b/src/runtime/mips-linux-os.c index f92a232..1b9bed7 100644 --- a/src/runtime/mips-linux-os.c +++ b/src/runtime/mips-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 @@ -42,6 +42,16 @@ #include 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) @@ -83,8 +93,17 @@ os_context_bd_cause(os_context_t *context) { /* We need to see if whatever happened, happened because of a branch delay event */ - return (((struct sigcontext *) &(context->uc_mcontext))->sc_cause - & CAUSEF_BD); + /* FIXME: However, I'm not convinced that the values that Linux + puts in this slot are actually right; specifically, attempting + to compile sbcl with sbcl-0.7.7.7 lead to an "infinite SIGTRAP + loop" where a (BREAK 16) not in a branch delay slot would have + CAUSEF_BD filled. So, we comment + + return (((struct sigcontext *) &(context->uc_mcontext))->sc_cause + & CAUSEF_BD); + + out and return 0 always. -- CSR, 2002-09-02 */ + return 0; } void