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:
630 bytes
|
Rev | Line | |
---|
[444] | 1 | #ifndef __XSCALE_MACH_H__ |
---|
| 2 | #define __XSCALE_MACH_H__ |
---|
| 3 | |
---|
| 4 | /* These are predefined by new versions of GNU cpp. */ |
---|
| 5 | |
---|
| 6 | #ifndef __USER_LABEL_PREFIX__ |
---|
| 7 | #define __USER_LABEL_PREFIX__ _ |
---|
| 8 | #endif |
---|
| 9 | |
---|
| 10 | #ifndef __REGISTER_PREFIX__ |
---|
| 11 | #define __REGISTER_PREFIX__ |
---|
| 12 | #endif |
---|
| 13 | |
---|
| 14 | /* ANSI concatenation macros. */ |
---|
| 15 | |
---|
| 16 | #define CONCAT1(a, b) CONCAT2(a, b) |
---|
| 17 | #define CONCAT2(a, b) a##b |
---|
| 18 | |
---|
| 19 | /* Use the right prefix for global labels. */ |
---|
| 20 | |
---|
| 21 | #define SYM(x) CONCAT1(__USER_LABEL_PREFIX__, x) |
---|
| 22 | |
---|
| 23 | #ifdef __XSCALE__ |
---|
| 24 | #define PRELOAD(X) pld [X] |
---|
| 25 | #define PRELOADSTR(X) " pld [" X "]" |
---|
| 26 | #else |
---|
| 27 | #define PRELOAD(X) |
---|
| 28 | #define PRELOADSTR(X) "" |
---|
| 29 | #endif /* __XSCALE__ */ |
---|
| 30 | |
---|
| 31 | #endif /* !__XSCALE_MACH_H__ */ |
---|
Note: See
TracBrowser
for help on using the repository browser.