| 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 #define __REG_PREFIX__ % | 15 #define __REG_PREFIX__ % |
| 16 | 16 |
| 17 /* x86 nacl-gas has a builtin symbol NACLENTRYALIGN (which the .S files were |
| 18 * written to use), but llvm's assembler does not. So use a define for |
| 19 * compatibility with both. */ |
| 20 #define NACLENTRYALIGN 5 |
| 17 /* ANSI concatenation macros. */ | 21 /* ANSI concatenation macros. */ |
| 18 | 22 |
| 19 #define CONCAT1(a, b) CONCAT2(a, b) | 23 #define CONCAT1(a, b) CONCAT2(a, b) |
| 20 #define CONCAT2(a, b) a##b | 24 #define CONCAT2(a, b) a##b |
| 21 | 25 |
| 22 /* Use the right prefix for global labels. */ | 26 /* Use the right prefix for global labels. */ |
| 23 | 27 |
| 24 #define SYM(x) CONCAT1(__USER_LABEL_PREFIX__, x) | 28 #define SYM(x) CONCAT1(__USER_LABEL_PREFIX__, x) |
| 25 | 29 |
| 26 /* Use the right prefix for registers. */ | 30 /* Use the right prefix for registers. */ |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 #define SOTYPE_FUNCTION(sym) | 78 #define SOTYPE_FUNCTION(sym) |
| 75 #endif | 79 #endif |
| 76 | 80 |
| 77 #ifdef _I386MACH_ALLOW_HW_INTERRUPTS | 81 #ifdef _I386MACH_ALLOW_HW_INTERRUPTS |
| 78 #define __CLI | 82 #define __CLI |
| 79 #define __STI | 83 #define __STI |
| 80 #else | 84 #else |
| 81 #define __CLI cli | 85 #define __CLI cli |
| 82 #define __STI sti | 86 #define __STI sti |
| 83 #endif | 87 #endif |
| OLD | NEW |