Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Jan 2012 07:06:35 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r229367 - head/sys/i386/include
Message-ID:  <201201030706.q0376Zad009871@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201030706.q0376Zad009871>