[PATCH] Fix arm build for librep

Togan Muftuoglu <[email protected]>
Newsgroups gmane.comp.window-managers.sawfish
Message-ID <[email protected]>
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(-)
0001-Fix-arm-build.patch (text/x-patch, 357 B)
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.