Author: imp
Date: Wed Mar  3 21:28:55 2010
New Revision: 204666
URL: http://svn.freebsd.org/changeset/base/204666

Log:
  Looks like S8 and SP are reversed in setjmp, so longjmp doesn't work
  as well as one would hope....
  
  Submitted by: Arten Belevich

Modified:
  head/sys/mips/mips/support.S

Modified: head/sys/mips/mips/support.S
==============================================================================
--- head/sys/mips/mips/support.S        Wed Mar  3 21:27:54 2010        
(r204665)
+++ head/sys/mips/mips/support.S        Wed Mar  3 21:28:55 2010        
(r204666)
@@ -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
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to