Fixes arm builds since register 7 is reserved in THUMB mode
Original author is [email protected]

Signed-off-by: Togan Muftuoglu <[email protected]>
---
 src/lispmach.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)


diff --git a/src/lispmach.h b/src/lispmach.h
index 4ff5d24..0411ed2 100644
--- a/src/lispmach.h
+++ b/src/lispmach.h
@@ -475,7 +475,8 @@ list_ref (repv list, int elt)
 #ifdef __arm__
 #define PC_REG asm("r9")
 #define SP_REG asm("r8")
-#define SLOTS_REG asm("r7")
+/* register 7 is reserved in THUMB mode */
+#define SLOTS_REG asm("r10")
 #endif
 #endif
 

Reply via email to