1 /* This file is intended for use by program code (possibly written in
2 * assembly) that needs to manipulate a jmp_buf or sigjmp_buf. The JB_*
3 * values are byte offsets into the jmp_buf and sigjmp_buf structures.
9 #include <minix/config.h>
12 /* as per lib/ack/rts/setjmp.e */
14 /* note the lack of parentheses, which would confuse 'as' */
16 #define JB_SP JB_PC + _EM_PSIZE
17 #define JB_LB JB_SP + _EM_PSIZE
18 #define JB_MASK JB_LB + _EM_PSIZE
19 #define JB_FLAGS JB_MASK + _EM_LSIZE
25 #elif defined(__GNUC__)
27 #if (CHIP == INTEL) && (_WORD_SIZE == 4)
28 /* as per lib/gnu/rts/__setjmp.gs */
41 #endif /* (CHIP == INTEL) && (_WORD_SIZE == 4) */
45 #endif /* _JMP_BUF_H */