svn commit: r212705 - head/sys/sparc64/include

Marius Strobl marius at FreeBSD.org
Wed Sep 15 21:11:30 UTC 2010


Author: marius
Date: Wed Sep 15 21:11:29 2010
New Revision: 212705
URL: http://svn.freebsd.org/changeset/base/212705

Log:
  Add macros for alternate entry points.

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

Modified: head/sys/sparc64/include/asm.h
==============================================================================
--- head/sys/sparc64/include/asm.h	Wed Sep 15 21:08:57 2010	(r212704)
+++ head/sys/sparc64/include/asm.h	Wed Sep 15 21:11:29 2010	(r212705)
@@ -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), at function ; \
+CNAME(x):
+
 #define	_ENTRY(x) \
 	_START_ENTRY ; \
 	.globl	CNAME(x) ; \
 	.type	CNAME(x), at function ; \
 CNAME(x):
 
+#define	ALTENTRY(x)	_ALTENTRY(x)
 #define	ENTRY(x)	_ENTRY(x)
 #define	END(x)		.size x, . - x
 


More information about the svn-src-all mailing list