Blame SOURCES/0006-fix-caml_c_call-reload-caml_young_limit.patch

0c4d3e
From 207fbbc2616ee44e048dd5bb133e52f252cd1caf Mon Sep 17 00:00:00 2001
0c4d3e
From: Nicolas Ojeda Bar <n.oje.bar@gmail.com>
0c4d3e
Date: Sat, 2 Dec 2017 10:44:41 +0100
0c4d3e
Subject: [PATCH 6/8] fix caml_c_call: reload caml_young_limit
0c4d3e
0c4d3e
---
0c4d3e
 asmrun/riscv.S | 2 +-
0c4d3e
 1 file changed, 1 insertion(+), 1 deletion(-)
0c4d3e
0c4d3e
diff --git a/asmrun/riscv.S b/asmrun/riscv.S
0c4d3e
index 88d7ab924..121f8ba71 100644
0c4d3e
--- a/asmrun/riscv.S
0c4d3e
+++ b/asmrun/riscv.S
0c4d3e
@@ -187,7 +187,7 @@ caml_c_call:
0c4d3e
         jalr    ARG
0c4d3e
         /* Reload alloc ptr and alloc limit */
0c4d3e
         load    ALLOC_PTR, caml_young_ptr
0c4d3e
-        load    TRAP_PTR, caml_exception_pointer
0c4d3e
+        load    ALLOC_LIMIT, caml_young_limit
0c4d3e
         /* Return */
0c4d3e
         jr      s2
0c4d3e
         .size   caml_c_call, .-caml_c_call
0c4d3e
-- 
0c4d3e
2.17.1
0c4d3e