svn commit: r229367 - head/sys/i386/include

Ed Schouten ed at FreeBSD.org
Tue Jan 3 07:06:35 UTC 2012


Author: ed
Date: Tue Jan  3 07:06:35 2012
New Revision: 229367
URL: http://svn.freebsd.org/changeset/base/229367

Log:
  Add support for strong aliasing of symbols in i386 assembly.
  
  This macro is a literal copy from the MIPS version of <machine/asm.h>.

Modified:
  head/sys/i386/include/asm.h

Modified: head/sys/i386/include/asm.h
==============================================================================
--- head/sys/i386/include/asm.h	Tue Jan  3 07:05:30 2012	(r229366)
+++ head/sys/i386/include/asm.h	Tue Jan  3 07:06:35 2012	(r229367)
@@ -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


More information about the svn-src-all mailing list