PERFORCE change 135026 for review

Warner Losh imp at FreeBSD.org
Fri Feb 8 01:17:16 PST 2008


http://perforce.freebsd.org/chv.cgi?CH=135026

Change 135026 by imp at imp_paco-paco on 2008/02/08 09:16:18

	Blindly move the #defines needed for the setjmp/longjmp userland
	pieces to compile over from mips2.  Hope for the best...

Affected files ...

.. //depot/projects/mips2-jnpr/src/sys/mips/include/asm.h#9 edit

Differences ...

==== //depot/projects/mips2-jnpr/src/sys/mips/include/asm.h#9 (text+ko) ====

@@ -475,4 +475,52 @@
 	lw	reg, _C_LABEL(pcpup);
 #endif
 
+/*
+ * Description of the setjmp buffer
+ *
+ * word  0	magic number	(dependant on creator)
+ *       1	RA
+ *       2	S0
+ *       3	S1
+ *       4	S2
+ *       5	S3
+ *       6	S4
+ *       7	S5
+ *       8	S6
+ *       9	S7
+ *       10	SP
+ *       11	S8
+ *       12	signal mask	(dependant on magic)
+ *       13	(con't)
+ *       14	(con't)
+ *       15	(con't)
+ *
+ * The magic number number identifies the jmp_buf and
+ * how the buffer was created as well as providing
+ * a sanity check
+ *
+ */
+
+#define _JB_MAGIC__SETJMP	0xBADFACED
+#define _JB_MAGIC_SETJMP	0xFACEDBAD
+
+/* Valid for all jmp_buf's */
+
+#define _JB_MAGIC		0
+#define _JB_REG_RA		1
+#define _JB_REG_S0		2
+#define _JB_REG_S1		3
+#define _JB_REG_S2		4
+#define _JB_REG_S3		5
+#define _JB_REG_S4		6
+#define _JB_REG_S5		7
+#define _JB_REG_S6		8
+#define _JB_REG_S7		9
+#define _JB_REG_SP		10
+#define _JB_REG_S8		11
+
+/* Only valid with the _JB_MAGIC_SETJMP magic */
+
+#define _JB_SIGMASK		12
+
 #endif /* !_MACHINE_ASM_H_ */


More information about the p4-projects mailing list