diff options
author | Nick Clifton <nickc@redhat.com> | 2000-11-30 04:57:27 +0300 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2000-11-30 04:57:27 +0300 |
commit | 0ffc3b94a0cc452f63eb977633e844dae8539f3a (patch) | |
tree | df045c028255a9399e7a5c489a946561619cac3b /newlib/libc/machine/xscale/xscale.h | |
parent | 09872ef885e9307dc41eb41fdc08bdb1f8ffef7a (diff) |
Add support for Intel's XScale processor
Diffstat (limited to 'newlib/libc/machine/xscale/xscale.h')
-rw-r--r-- | newlib/libc/machine/xscale/xscale.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/newlib/libc/machine/xscale/xscale.h b/newlib/libc/machine/xscale/xscale.h new file mode 100644 index 000000000..c127e6653 --- /dev/null +++ b/newlib/libc/machine/xscale/xscale.h @@ -0,0 +1,31 @@ +#ifndef __XSCALE_MACH_H__ +#define __XSCALE_MACH_H__ + +/* These are predefined by new versions of GNU cpp. */ + +#ifndef __USER_LABEL_PREFIX__ +#define __USER_LABEL_PREFIX__ _ +#endif + +#ifndef __REGISTER_PREFIX__ +#define __REGISTER_PREFIX__ +#endif + +/* ANSI concatenation macros. */ + +#define CONCAT1(a, b) CONCAT2(a, b) +#define CONCAT2(a, b) a##b + +/* Use the right prefix for global labels. */ + +#define SYM(x) CONCAT1(__USER_LABEL_PREFIX__, x) + +#ifdef __XSCALE__ +#define PRELOAD(X) pld [X] +#define PRELOADSTR(X) " pld [" X "]" +#else +#define PRELOAD(X) +#define PRELOADSTR(X) "" +#endif /* __XSCALE__ */ + +#endif /* !__XSCALE_MACH_H__ */ |