From f96d8241e6a0b8a2fe532f6c33651bbf6ade74fd Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Wed, 3 Mar 2010 21:28:55 +0000 Subject: [PATCH] Looks like S8 and SP are reversed in setjmp, so longjmp doesn't work as well as one would hope.... Submitted by: Arten Belevich --- sys/mips/mips/support.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/mips/mips/support.S b/sys/mips/mips/support.S index 526f95776f1..6282eb0339f 100644 --- a/sys/mips/mips/support.S +++ b/sys/mips/mips/support.S @@ -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