1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-26 07:55:01 +00:00

Looks like S8 and SP are reversed in setjmp, so longjmp doesn't work

as well as one would hope....

Submitted by:	Arten Belevich
This commit is contained in:
Warner Losh 2010-03-03 21:28:55 +00:00
parent bdefa4b708
commit f96d8241e6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=204666

View File

@ -1474,8 +1474,8 @@ LEAF(setjmp)
STORE s5, (RSIZE * PREG_S5)(a0)
STORE s6, (RSIZE * PREG_S6)(a0)
STORE s7, (RSIZE * PREG_S7)(a0)
STORE s8, (RSIZE * PREG_SP)(a0)
STORE sp, (RSIZE * PREG_S8)(a0)
STORE s8, (RSIZE * PREG_S8)(a0)
STORE sp, (RSIZE * PREG_SP)(a0)
STORE ra, (RSIZE * PREG_RA)(a0)
STORE v0, (RSIZE * PREG_SR)(a0)
jr ra