[Sawfish] [PATCH] Fix arm build for librep |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/sawfish Archives
]
Fixes arm builds since register 7 is reserved in THUMB mode
Original author is crrodriguez@xxxxxxxxxxxx
Signed-off-by: Togan Muftuoglu <toganm@xxxxxxxxxxxx>
---
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