summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/include/asm.h
diff options
context:
space:
mode:
authorbenno <benno@FreeBSD.org>2002-05-17 01:44:55 +0000
committerbenno <benno@FreeBSD.org>2002-05-17 01:44:55 +0000
commit57da897c11eac46f754b9f5a5745820128caf280 (patch)
tree1aacf522de7e6558d92c4700399baa908d509db8 /sys/powerpc/include/asm.h
parentdc8454644141370b952eee38f3e9dc938f5f20fe (diff)
downloadFreeBSD-src-57da897c11eac46f754b9f5a5745820128caf280.zip
FreeBSD-src-57da897c11eac46f754b9f5a5745820128caf280.tar.gz
- Rename the _C_LABEL macro to CNAME.
- Rename the _ASM_LABEL macro to ASMNAME. - Add the HIDENAME macro which is used in libc's syscall stuff.
Diffstat (limited to 'sys/powerpc/include/asm.h')
-rw-r--r--sys/powerpc/include/asm.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/powerpc/include/asm.h b/sys/powerpc/include/asm.h
index 0b15f9d..52580b4 100644
--- a/sys/powerpc/include/asm.h
+++ b/sys/powerpc/include/asm.h
@@ -54,8 +54,9 @@
#define PIC_GOTOFF(x) x
#endif
-#define _C_LABEL(x) x
-#define _ASM_LABEL(x) x
+#define CNAME(csym) csym
+#define ASMNAME(asmsym) asmsym
+#define HIDENAME(asmsym) __CONCAT(.,asmsym)
#define _GLOBAL(x) \
.data; .align 2; .globl x; x:
@@ -69,9 +70,9 @@
# define _PROF_PROLOGUE
#endif
-#define ENTRY(y) _ENTRY(_C_LABEL(y)); _PROF_PROLOGUE
-#define ASENTRY(y) _ENTRY(_ASM_LABEL(y)); _PROF_PROLOGUE
-#define GLOBAL(y) _GLOBAL(_C_LABEL(y))
+#define ENTRY(y) _ENTRY(CNAME(y)); _PROF_PROLOGUE
+#define ASENTRY(y) _ENTRY(ASMNAME(y)); _PROF_PROLOGUE
+#define GLOBAL(y) _GLOBAL(CNAME(y))
#define ASMSTR .asciz
OpenPOWER on IntegriCloud