X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fruntime%2Fmips-linux-os.c;h=2f4a0dad4b9e635f7c0c486f25aedefa64071b69;hb=c3699db2053ff3b5ac6a98d4431c3789496002d8;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..2f4a0da 100644 --- a/src/runtime/mips-linux-os.c +++ b/src/runtime/mips-linux-os.c @@ -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