summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/m68k/rtems/asm.h
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2004-01-30 01:05:08 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2004-01-30 01:05:08 +0000
commit7b3de7e387c40ade7ebe3b63e06e155ff1794ed5 (patch)
tree9c888875f3f3bedc68790391a2b96f70fe75d395 /cpukit/score/cpu/m68k/rtems/asm.h
parentRemove unnecessary .cvsignore. (diff)
downloadrtems-7b3de7e387c40ade7ebe3b63e06e155ff1794ed5.tar.bz2
2004-01-29 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
PR 561/rtems * asm.h: Add CONCAT0, EVAL. Let SYM and REG use CONCAT0 and EVAL.
Diffstat (limited to 'cpukit/score/cpu/m68k/rtems/asm.h')
-rw-r--r--cpukit/score/cpu/m68k/rtems/asm.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/cpukit/score/cpu/m68k/rtems/asm.h b/cpukit/score/cpu/m68k/rtems/asm.h
index 6c388fb396..d35b3595fa 100644
--- a/cpukit/score/cpu/m68k/rtems/asm.h
+++ b/cpukit/score/cpu/m68k/rtems/asm.h
@@ -56,13 +56,16 @@
#define CONCAT1(a, b) CONCAT2(a, b)
#define CONCAT2(a, b) a ## b
+#define EVAL(x) x
+#define CONCAT0(a, b) EVAL(a)EVAL(b)
+
/* Use the right prefix for global labels. */
-#define SYM(x) CONCAT1 (__USER_LABEL_PREFIX__, x)
+#define SYM(x) CONCAT0 (__USER_LABEL_PREFIX__, x)
/* Use the right prefix for registers. */
-#define REG(x) CONCAT1 (__REGISTER_PREFIX__, x)
+#define REG(x) CONCAT0 (__REGISTER_PREFIX__, x)
#define d0 REG (d0)
#define d1 REG (d1)
@@ -140,5 +143,3 @@
#endif
/* end of include file */
-
-