.
[glibc.git] / sysdeps / i386 / jmp_buf.h
blob0c03073b365f7f57b9fcd5354b254d1ae1619481
1 /* Define the machine-dependent type `jmp_buf'. Intel 386 version. */
3 #if defined (__USE_MISC) || defined (_ASM)
4 #define JB_BX 0
5 #define JB_SI 1
6 #define JB_DI 2
7 #define JB_BP 3
8 #define JB_SP 4
9 #define JB_PC 5
10 #endif
12 #ifndef _ASM
13 typedef int __jmp_buf[6];
14 #endif
16 /* Test if longjmp to JMPBUF would unwind the frame
17 containing a local variable at ADDRESS. */
18 #define _JMPBUF_UNWINDS(jmpbuf, address) \
19 ((int) (address) < (jmpbuf)[JB_SP])