Move the global safepoint to one page before static space
[sbcl.git] / src / runtime / mips-assem.S
index 6c7b7d6..4eabf21 100644 (file)
@@ -447,10 +447,16 @@ funcallable_instance_tramp = . + 1
  * copied and has to be relocatable. It also needs a properly aligned
  * header tag after the fun_end_breakpoint_guts symbol.
  */
+
+/*
+ * For an explanation of the magic involved in function-end
+ * breakpoints, see the implementation in ppc-assem.S.
+ */
+
        .align  3 /* minimum alignment for a lisp object */
        LEAF(fun_end_breakpoint_guts)
        .set    noreorder
-       .word   RETURN_PC_HEADER_WIDETAG
+       .word   RETURN_PC_HEADER_WIDETAG + 0x800
        b       multiple_value_return
         nop
        .set    reorder
@@ -469,8 +475,10 @@ funcallable_instance_tramp = . + 1
 multiple_value_return:
 
        FEXPORT(fun_end_breakpoint_trap)
-       break   0x0, trap_FunEndBreakpoint
+       .set    noreorder
        b       multiple_value_return
+        break  0x0, trap_FunEndBreakpoint
+       .set    reorder
        EXPORT(fun_end_breakpoint_end)
        END(fun_end_breakpoint_guts)