summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2012-01-03 07:06:35 +0000
committered <ed@FreeBSD.org>2012-01-03 07:06:35 +0000
commit29cd68a581450e8d265ffcd2f82de6bcd65778c6 (patch)
tree526e9eab42890a03c2766f74b8e82c62b6037a21
parentd73fab66763e8ae3eb190e76d7ae95aa680d3448 (diff)
downloadFreeBSD-src-29cd68a581450e8d265ffcd2f82de6bcd65778c6.zip
FreeBSD-src-29cd68a581450e8d265ffcd2f82de6bcd65778c6.tar.gz
Add support for strong aliasing of symbols in i386 assembly.
This macro is a literal copy from the MIPS version of <machine/asm.h>.
-rw-r--r--sys/i386/include/asm.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/i386/include/asm.h b/sys/i386/include/asm.h
index 3148bb7..18d5819 100644
--- a/sys/i386/include/asm.h
+++ b/sys/i386/include/asm.h
@@ -89,6 +89,13 @@
#define ENTRY(x) _ENTRY(x)
#endif
+/*
+ * STRONG_ALIAS: create a strong alias.
+ */
+#define STRONG_ALIAS(alias,sym) \
+ .globl alias; \
+ alias = sym
+
#define RCSID(x) .text; .asciz x
#undef __FBSDID
OpenPOWER on IntegriCloud