X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fppc-arch.c;h=3d209e935afc2555128bd245a09f1e4c509af97b;hb=22c1de0a40df83bb5628974010a879cb2c17ff53;hp=eac4013f9d5d20ec350510ea4b4f4f1dd56de33b;hpb=c1b4849c95bad4f3535fba2b9307fd37e15bcf6d;p=sbcl.git diff --git a/src/runtime/ppc-arch.c b/src/runtime/ppc-arch.c index eac4013..3d209e9 100644 --- a/src/runtime/ppc-arch.c +++ b/src/runtime/ppc-arch.c @@ -1,12 +1,3 @@ -/* - - $Header$ - - This code was written as part of the CMU Common Lisp project at - Carnegie Mellon University, and has been placed in the public domain. - -*/ - #include #include "arch.h" @@ -58,7 +49,7 @@ arch_get_bad_addr(int sig, siginfo_t *code, os_context_t *context) if ((((unsigned long)pc) & 3) != 0 || ((pc < READ_ONLY_SPACE_START || pc >= READ_ONLY_SPACE_START+READ_ONLY_SPACE_SIZE) && - ((lispobj *)pc < current_dynamic_space && + ((lispobj *)pc < current_dynamic_space || (lispobj *)pc >= current_dynamic_space + DYNAMIC_SPACE_SIZE))) return 0; @@ -107,6 +98,14 @@ arch_install_breakpoint(void *pc) } void +get_spinlock(lispobj *word,int value) +{ + /* FIXME */ + *word=value; +} + + +void arch_remove_breakpoint(void *pc, unsigned long orig_inst) { *(unsigned long *)pc = orig_inst; @@ -137,6 +136,9 @@ sigtrap_handler(int signal, siginfo_t *siginfo, os_context_t *context) int badinst; u32 code; sigset_t *mask; +#ifdef LISP_FEATURE_LINUX + os_restore_fp_control(context); +#endif mask=(os_context_sigmask_addr(context)); sigsetmask(mask); code=*((u32 *)(*os_context_pc_addr(context)));