diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2012-03-10 13:46:33 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-03-28 16:27:11 +0100 |
commit | 7f3cc4ea1d996aa18602b6df019af446165cb183 (patch) | |
tree | a72600a6666664cb96580dba1b964d2df67bd68b /i386 | |
parent | bcc9ec2c0ad0a8a4dbf2d0d6d374cb9278a50bf0 (diff) | |
download | gnumach-7f3cc4ea1d996aa18602b6df019af446165cb183.tar.gz gnumach-7f3cc4ea1d996aa18602b6df019af446165cb183.tar.bz2 gnumach-7f3cc4ea1d996aa18602b6df019af446165cb183.zip |
setjmp: Add 64bit variant
* x86_64/_setjmp.S: New file
* i386/i386/setjmp.h (jmp_buf): Add 64bit variant.
Diffstat (limited to 'i386')
-rw-r--r-- | i386/i386/setjmp.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/i386/i386/setjmp.h b/i386/i386/setjmp.h index 930a9dd5..0db56ae1 100644 --- a/i386/i386/setjmp.h +++ b/i386/i386/setjmp.h @@ -30,7 +30,11 @@ #define _I386_SETJMP_H_ typedef struct jmp_buf { +#ifdef __i386__ int jmp_buf[6]; /* ebx, esi, edi, ebp, esp, eip */ +#else + long jmp_buf[8]; /* rbx, rbp, r12, r13, r14, r15, rsp, rip */ +#endif } jmp_buf_t; extern int _setjmp(jmp_buf_t*); |