Last change
on this file was
444,
checked in by satin@…, 6 years ago
|
add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc
|
File size:
824 bytes
|
Rev | Line | |
---|
[444] | 1 | /* These are predefined by new versions of GNU cpp. */ |
---|
| 2 | |
---|
| 3 | #ifndef __USER_LABEL_PREFIX__ |
---|
| 4 | #define __USER_LABEL_PREFIX__ _ |
---|
| 5 | #endif |
---|
| 6 | |
---|
| 7 | #ifndef __REGISTER_PREFIX__ |
---|
| 8 | #define __REGISTER_PREFIX__ |
---|
| 9 | #endif |
---|
| 10 | |
---|
| 11 | /* ANSI concatenation macros. */ |
---|
| 12 | |
---|
| 13 | #define CONCAT1(a, b) CONCAT2(a, b) |
---|
| 14 | #define CONCAT2(a, b) a ## b |
---|
| 15 | |
---|
| 16 | /* Use the right prefix for global labels. */ |
---|
| 17 | |
---|
| 18 | #define SYM(x) CONCAT1 (__USER_LABEL_PREFIX__, x) |
---|
| 19 | |
---|
| 20 | /* Use the right prefix for registers. */ |
---|
| 21 | |
---|
| 22 | #define REG(x) CONCAT1 (__REGISTER_PREFIX__, x) |
---|
| 23 | |
---|
| 24 | #define d0 REG (d0) |
---|
| 25 | #define d1 REG (d1) |
---|
| 26 | #define d2 REG (d2) |
---|
| 27 | #define d3 REG (d3) |
---|
| 28 | #define d4 REG (d4) |
---|
| 29 | #define d5 REG (d5) |
---|
| 30 | #define d6 REG (d6) |
---|
| 31 | #define d7 REG (d7) |
---|
| 32 | #define a0 REG (a0) |
---|
| 33 | #define a1 REG (a1) |
---|
| 34 | #define a2 REG (a2) |
---|
| 35 | #define a3 REG (a3) |
---|
| 36 | #define a4 REG (a4) |
---|
| 37 | #define a5 REG (a5) |
---|
| 38 | #define a6 REG (a6) |
---|
| 39 | #define fp REG (fp) |
---|
| 40 | #define sp REG (sp) |
---|
Note: See
TracBrowser
for help on using the repository browser.