aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/i386/jmp_buf.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/i386/jmp_buf.h')
-rw-r--r--sysdeps/i386/jmp_buf.h21
1 files changed, 13 insertions, 8 deletions
diff --git a/sysdeps/i386/jmp_buf.h b/sysdeps/i386/jmp_buf.h
index 7949883b60..0c03073b36 100644
--- a/sysdeps/i386/jmp_buf.h
+++ b/sysdeps/i386/jmp_buf.h
@@ -1,14 +1,19 @@
/* Define the machine-dependent type `jmp_buf'. Intel 386 version. */
-typedef struct
- {
- long int __bx, __si, __di;
- __ptr_t __bp;
- __ptr_t __sp;
- __ptr_t __pc;
- } __jmp_buf[1];
+#if defined (__USE_MISC) || defined (_ASM)
+#define JB_BX 0
+#define JB_SI 1
+#define JB_DI 2
+#define JB_BP 3
+#define JB_SP 4
+#define JB_PC 5
+#endif
+
+#ifndef _ASM
+typedef int __jmp_buf[6];
+#endif
/* Test if longjmp to JMPBUF would unwind the frame
containing a local variable at ADDRESS. */
#define _JMPBUF_UNWINDS(jmpbuf, address) \
- ((__ptr_t) (address) < (jmpbuf)[0].__sp)
+ ((int) (address) < (jmpbuf)[JB_SP])