X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fmips-linux-os.c;h=27ced2474bb4a9fb37163dfa48a637d36eccb2d5;hb=b7a8f5313a83dea33ce60551a4fb987b415c2cc6;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..27ced24 100644 --- a/src/runtime/mips-linux-os.c +++ b/src/runtime/mips-linux-os.c @@ -42,6 +42,19 @@ #include 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 */ +} +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 +96,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