summaryrefslogtreecommitdiffstats
path: root/asmrun/mips.asm
diff options
context:
space:
mode:
Diffstat (limited to 'asmrun/mips.asm')
-rw-r--r--asmrun/mips.asm2
1 files changed, 2 insertions, 0 deletions
diff --git a/asmrun/mips.asm b/asmrun/mips.asm
index 272eea901..755305371 100644
--- a/asmrun/mips.asm
+++ b/asmrun/mips.asm
@@ -78,6 +78,8 @@ caml_call_gc:
sw $25, 16($sp)
/* Save current allocation pointer for debugging purposes */
sw $22, young_ptr
+ /* Save the exception handler (if e.g. a sighandler raises) */
+ sw $30, caml_exception_pointer
/* Save all regs used by the code generator in the arrays
/* gc_entry_regs and gc_entry_float_regs. */
SAVE(2)