summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/xtensa
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2016-03-22 02:13:05 +0300
committerWaldemar Brodkorb <wbx@openadk.org>2016-03-31 19:35:13 +0200
commit4ab024d22980cf493dc95a089353df6ebc743f46 (patch)
tree03b89b7acb2d8405d274ae494942a79dba70d82b /libc/sysdeps/linux/xtensa
parentadedda211de69fa0fa09af167aa327d4550f497e (diff)
xtensa: fix __sigsetjmp call12 case
Register window saving loop in __sigsetjmp incorrectly calculates offset in the jmp_buf in case it was called with call12. The bug was introduced in commit f4b1b7ade7971141 "xtensa: fix setjmp that didn't save all registers correctly". Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'libc/sysdeps/linux/xtensa')
-rw-r--r--libc/sysdeps/linux/xtensa/setjmp.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/xtensa/setjmp.S b/libc/sysdeps/linux/xtensa/setjmp.S
index 862bf6729..b8152fdd8 100644
--- a/libc/sysdeps/linux/xtensa/setjmp.S
+++ b/libc/sysdeps/linux/xtensa/setjmp.S
@@ -122,7 +122,7 @@ ENTRY (__sigsetjmp)
l32i a4, a6, 12
s32i a7, a5, 8
s32i a4, a5, 12
- addi a5, a6, 16
+ addi a5, a5, 16
addi a6, a6, 16
blt a6, a8, .Lsjloop
.Lendsj: