Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Sep 2010 20:01:35 +0000 (UTC)
From:      Marius Strobl <marius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org
Subject:   svn commit: r213019 - stable/7/sys/sparc64/include
Message-ID:  <201009222001.o8MK1Zcm041561@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marius
Date: Wed Sep 22 20:01:35 2010
New Revision: 213019
URL: http://svn.freebsd.org/changeset/base/213019

Log:
  MFC: r212705
  
  Add macros for alternate entry points.

Modified:
  stable/7/sys/sparc64/include/asm.h
Directory Properties:
  stable/7/sys/   (props changed)
  stable/7/sys/cddl/contrib/opensolaris/   (props changed)
  stable/7/sys/contrib/dev/acpica/   (props changed)
  stable/7/sys/contrib/pf/   (props changed)

Modified: stable/7/sys/sparc64/include/asm.h
==============================================================================
--- stable/7/sys/sparc64/include/asm.h	Wed Sep 22 20:01:33 2010	(r213018)
+++ stable/7/sys/sparc64/include/asm.h	Wed Sep 22 20:01:35 2010	(r213019)
@@ -76,7 +76,7 @@
 	_ALIGN_TEXT
 
 /*
- * Define a function entry point.
+ * Define function entry and alternate entry points.
  *
  * The compiler produces #function for the .type pseudo-op, but the '#'
  * character has special meaning in cpp macros, so we use @function like
@@ -86,12 +86,19 @@
  * value.  Since this is difficult to predict and its expected that
  * assembler code is already optimized, we leave it out.
  */
+
+#define	_ALTENTRY(x) \
+	.globl	CNAME(x) ; \
+	.type	CNAME(x),@function ; \
+CNAME(x):
+
 #define	_ENTRY(x) \
 	_START_ENTRY ; \
 	.globl	CNAME(x) ; \
 	.type	CNAME(x),@function ; \
 CNAME(x):
 
+#define	ALTENTRY(x)	_ALTENTRY(x)
 #define	ENTRY(x)	_ENTRY(x)
 #define	END(x)		.size x, . - x
 



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