[PATCH] D22292: [libunwind] Fix unw_getcontext for ARMv6-m

Weiming Zhao via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 12 17:06:54 PDT 2016

weimingz created this revision.
weimingz added reviewers: rengolin, rmaprath.
weimingz added a subscriber: cfe-commits.
Herald added subscribers: rengolin, aemerson.

ARMv6-m requires the writeback suffix for stm. 



Index: src/UnwindRegistersSave.S
--- src/UnwindRegistersSave.S
+++ src/UnwindRegistersSave.S
@@ -310,7 +310,8 @@
   .p2align 2
 #if !defined(__ARM_ARCH_ISA_ARM)
-  stm r0, {r0-r7}
+  stm r0!, {r0-r7}
+  subs r0, r0, #32
   mov r2, sp
   mov r3, lr
   str r2, [r0, #52]

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22292.63759.patch
Type: text/x-patch
Size: 380 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160713/ec9da441/attachment.bin>

More information about the cfe-commits mailing list