diff options
author | peter <peter@FreeBSD.org> | 2003-06-02 21:49:35 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2003-06-02 21:49:35 +0000 |
commit | 458ad34341ff5b8d4e26424d48fdb0e21d5c67eb (patch) | |
tree | f680460cf710e89e27da8396bddb35d32b0bfc36 | |
parent | 67a8d1ff999b97ec2fbb000d15891ace4f282a2d (diff) | |
download | FreeBSD-src-458ad34341ff5b8d4e26424d48fdb0e21d5c67eb.zip FreeBSD-src-458ad34341ff5b8d4e26424d48fdb0e21d5c67eb.tar.gz |
Make this more compatable with libc_r. Make the internal types for storing
registers an array of longs rather than int.
-rw-r--r-- | sys/amd64/include/setjmp.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/amd64/include/setjmp.h b/sys/amd64/include/setjmp.h index a6a9399..2c17b5d 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_ */ |