pci: don't do sanity check for missing pci bus, the check can misfire.
[minix.git] / include / sys / jmp_buf.h
blob94e692406f0d95e0a92b8258e13b0713ce0afd65
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.
4 */
6 #ifndef _JMP_BUF_H
7 #define _JMP_BUF_H
9 #include <minix/config.h>
11 #if defined(__ACK__)
12 /* as per lib/ack/rts/setjmp.e */
14 /* note the lack of parentheses, which would confuse 'as' */
15 #define JB_PC 0
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
21 #if (CHIP == INTEL)
22 #define JB_BP JB_LB
23 #endif
25 #elif defined(__GNUC__)
27 #if (CHIP == INTEL) && (_WORD_SIZE == 4)
28 /* as per lib/gnu/rts/__setjmp.gs */
30 #define JB_FLAGS 0
31 #define JB_MASK 4
32 #define JB_PC 8
33 #define JB_SP 12
34 #define JB_BP 16
35 #define JB_BX 20
36 #define JB_CX 24
37 #define JB_DX 28
38 #define JB_SI 32
39 #define JB_DI 36
41 #endif /* (CHIP == INTEL) && (_WORD_SIZE == 4) */
43 #endif /* __GNU__ */
45 #endif /* _JMP_BUF_H */