summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/arm
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2009-06-30 21:20:26 +0000
committerJoseph Myers <joseph@codesourcery.com>2009-06-30 21:20:26 +0000
commit77c075f4ea2d9a625f35292063bd627e2e8fdf10 (patch)
treedb49ce940b7c2399710bcda393c97bf6429f4e20 /libc/sysdeps/linux/arm
parentea697ec9ea1cd82f8eb21c2a70bccc9e760bcc7a (diff)
Fix Thumb-2 setjmp.
Many Thumb-2 instructions cannot use sp or pc as operands, and the assembler now diagnoses these. setjmp had one such instruction, movs; this patch changes it to mov. Signed-off-by: Joseph Myers <joseph@codesourcery.com>
Diffstat (limited to 'libc/sysdeps/linux/arm')
-rw-r--r--libc/sysdeps/linux/arm/setjmp.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/arm/setjmp.S b/libc/sysdeps/linux/arm/setjmp.S
index 2df7d551a..76d179043 100644
--- a/libc/sysdeps/linux/arm/setjmp.S
+++ b/libc/sysdeps/linux/arm/setjmp.S
@@ -47,7 +47,7 @@ __sigsetjmp:
mov ip, r0
#if defined(__thumb2__)
stmia ip!, {v1-v6, sl, fp}
- movs r2, sp
+ mov r2, sp
stmia ip!, {r2, lr}
#else
/* Save registers */