summaryrefslogtreecommitdiff
path: root/sys/powerpc/include/asm.h
diff options
context:
space:
mode:
authorJustin Hibbits <jhibbits@FreeBSD.org>2017-04-01 19:27:06 +0000
committerJustin Hibbits <jhibbits@FreeBSD.org>2017-04-01 19:27:06 +0000
commit7492cbfe97bb3da54ce0cb39cb69e5cdcaba7a41 (patch)
treeb73199a18264d2aa63323464755fbd84d25d7c21 /sys/powerpc/include/asm.h
parent7c2ef054e0be999ab9d7c3d541650bcaa7f461ee (diff)
Notes
Diffstat (limited to 'sys/powerpc/include/asm.h')
-rw-r--r--sys/powerpc/include/asm.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/powerpc/include/asm.h b/sys/powerpc/include/asm.h
index 3aec5d3a4791..08aab9854c62 100644
--- a/sys/powerpc/include/asm.h
+++ b/sys/powerpc/include/asm.h
@@ -89,10 +89,11 @@
name:
#ifdef __powerpc64__
-#define TOC_REF(name) __CONCAT(.L,name)
+#define TOC_NAME_FOR_REF(name) __CONCAT(.L,name)
+#define TOC_REF(name) TOC_NAME_FOR_REF(name)@toc
#define TOC_ENTRY(name) \
.section ".toc","aw"; \
- TOC_REF(name): \
+ TOC_NAME_FOR_REF(name): \
.tc name[TC],name
#endif