OLD | NEW |
1 /* This file was based on the modified setjmp.S performed by | 1 /* This file was based on the modified setjmp.S performed by |
2 * Joel Sherill (joel@OARcorp.com) which specified the use | 2 * Joel Sherill (joel@OARcorp.com) which specified the use |
3 * of the __USER_LABEL_PREFIX__ and __REGISTER_PREFIX__ macros. | 3 * of the __USER_LABEL_PREFIX__ and __REGISTER_PREFIX__ macros. |
4 ** | 4 ** |
5 ** This file is distributed WITHOUT ANY WARRANTY; without even the implied | 5 ** This file is distributed WITHOUT ANY WARRANTY; without even the implied |
6 ** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 6 ** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
7 */ | 7 */ |
8 | 8 |
9 /* These are predefined by new versions of GNU cpp. */ | 9 /* These are predefined by new versions of GNU cpp. */ |
10 | 10 |
11 #ifndef __USER_LABEL_PREFIX__ | 11 #ifndef __USER_LABEL_PREFIX__ |
12 #define __USER_LABEL_PREFIX__ _ | 12 #define __USER_LABEL_PREFIX__ _ |
13 #endif | 13 #endif |
14 | 14 |
| 15 /* x86 nacl-gas has a builtin symbol NACLENTRYALIGN (which the .S files were |
| 16 * written to use), but llvm's assembler does not. So use a define for |
| 17 * compatibility with both. */ |
| 18 #define NACLENTRYALIGN 5 |
| 19 |
15 #define __REG_PREFIX__ % | 20 #define __REG_PREFIX__ % |
16 | 21 |
17 /* ANSI concatenation macros. */ | 22 /* ANSI concatenation macros. */ |
18 | 23 |
19 #define CONCAT1(a, b) CONCAT2(a, b) | 24 #define CONCAT1(a, b) CONCAT2(a, b) |
20 #define CONCAT2(a, b) a##b | 25 #define CONCAT2(a, b) a##b |
21 | 26 |
22 /* Use the right prefix for global labels. */ | 27 /* Use the right prefix for global labels. */ |
23 | 28 |
24 #define SYM(x) CONCAT1(__USER_LABEL_PREFIX__, x) | 29 #define SYM(x) CONCAT1(__USER_LABEL_PREFIX__, x) |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 #define SOTYPE_FUNCTION(sym) | 79 #define SOTYPE_FUNCTION(sym) |
75 #endif | 80 #endif |
76 | 81 |
77 #ifdef _I386MACH_ALLOW_HW_INTERRUPTS | 82 #ifdef _I386MACH_ALLOW_HW_INTERRUPTS |
78 #define __CLI | 83 #define __CLI |
79 #define __STI | 84 #define __STI |
80 #else | 85 #else |
81 #define __CLI cli | 86 #define __CLI cli |
82 #define __STI sti | 87 #define __STI sti |
83 #endif | 88 #endif |
OLD | NEW |