1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-11-22 23:47:39 +01:00

Store rp and bsp in the same location as libc's setjmp().

(Logical change 1.258)
This commit is contained in:
hp.com!davidm 2004-08-26 11:07:05 +00:00
parent ff2dcb9897
commit 18b501de4c

View file

@ -34,12 +34,12 @@ _setjmp:
st8 [r32] = r12 // jmp_buf[0] = sp
mov r3 = rp
adds r16 = 8, r32
adds r17 = 16, r32
adds r16 = 0x40, r32
adds r17 = 0x88, r32
mov r8 = 0
;;
st8 [r16] = r3 // jmp_buf[1] = rp
st8 [r17] = r2 // jmp_buf[2] = bsp
st8 [r16] = r3 // jmp_buf[8] = rp
st8 [r17] = r2 // jmp_buf[17] = bsp
br.ret.sptk.many rp
.endp _setjmp