Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Mar 2008 17:44:05 GMT
From:      "Randall R. Stewart" <rrs@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 137623 for review
Message-ID:  <200803131744.m2DHi57M087677@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=137623

Change 137623 by rrs@rrs-mips2-jnpr on 2008/03/13 17:43:53

	CALLFRAME_RA is a reference value, not one to be used
	       as a size, CALLFRAME_SIZE is needed. Also we need to
	       assure a 8 byte divisible value, so we change the SZREG
	       to 2 * SZREG. That will give us 8 or 16.

Affected files ...

.. //depot/projects/mips2-jnpr/src/lib/libc/mips/gen/setjmp.S#4 edit

Differences ...

==== //depot/projects/mips2-jnpr/src/lib/libc/mips/gen/setjmp.S#4 (text+ko) ====

@@ -55,7 +55,7 @@
  * and a struct sigcontext, see <signal.h>
  */
 
-#define SETJMP_FRAME_SIZE	(CALLFRAME_SIZ + SZREG)
+#define SETJMP_FRAME_SIZE	(CALLFRAME_SIZ + (SZREG * 2))
 
 
 NESTED(setjmp, SETJMP_FRAME_SIZE, ra)
@@ -101,7 +101,7 @@
 	j	ra
 END(setjmp)
 
-#define LONGJMP_FRAME_SIZE	CALLFRAME_RA + SZREG * 2
+#define LONGJMP_FRAME_SIZE	(CALLFRAME_SIZ + (SZREG * 2))
 
 NESTED(longjmp, LONGJMP_FRAME_SIZE, ra)
 	.mask	0x80000000, (CALLFRAME_RA - CALLFRAME_SIZ)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200803131744.m2DHi57M087677>