summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2003-06-02 21:51:24 +0000
committerPeter Wemm <peter@FreeBSD.org>2003-06-02 21:51:24 +0000
commit24a1e290905bf0be04b0a2a54479e44eddd475bb (patch)
tree71b5be13cf652d26783f39fac0bb6fe41025876a
parent77e49d24d4800c9a6acb203e9eafb22a16c09640 (diff)
downloadsrc-test2-24a1e290905bf0be04b0a2a54479e44eddd475bb.tar.gz
src-test2-24a1e290905bf0be04b0a2a54479e44eddd475bb.zip
Notes
-rw-r--r--sys/amd64/include/setjmp.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/amd64/include/setjmp.h b/sys/amd64/include/setjmp.h
index a6a9399a75c9..2c17b5d1768d 100644
--- a/sys/amd64/include/setjmp.h
+++ b/sys/amd64/include/setjmp.h
@@ -37,7 +37,7 @@
#include <sys/cdefs.h>
-#define _JBLEN 22 /* Size of the jmp_buf on x86. */
+#define _JBLEN 12 /* Size of the jmp_buf on AMD64. */
/*
* jmp_buf and sigjmp_buf are encapsulated in different structs to force
@@ -45,9 +45,9 @@
* internally to avoid some run-time errors for mismatches.
*/
#if __BSD_VISIBLE || __POSIX_VISIBLE || __XSI_VISIBLE
-typedef struct _sigjmp_buf { int _sjb[_JBLEN + 1]; } sigjmp_buf[1];
+typedef struct _sigjmp_buf { long _sjb[_JBLEN]; } sigjmp_buf[1];
#endif
-typedef struct _jmp_buf { int _jb[_JBLEN + 1]; } jmp_buf[1];
+typedef struct _jmp_buf { long _jb[_JBLEN]; } jmp_buf[1];
#endif /* !_MACHINE_SETJMP_H_ */