Module Name:    src
Committed By:   matt
Date:           Thu Mar  6 19:05:24 UTC 2014

Modified Files:
        src/sys/arch/powerpc/include: asm.h

Log Message:
Add _XENTRY which doesn't set the section to .text


To generate a diff of this commit:
cvs rdiff -u -r1.45 -r1.46 src/sys/arch/powerpc/include/asm.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/powerpc/include/asm.h
diff -u src/sys/arch/powerpc/include/asm.h:1.45 src/sys/arch/powerpc/include/asm.h:1.46
--- src/sys/arch/powerpc/include/asm.h:1.45	Fri Feb 28 05:26:23 2014
+++ src/sys/arch/powerpc/include/asm.h	Thu Mar  6 19:05:24 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: asm.h,v 1.45 2014/02/28 05:26:23 matt Exp $	*/
+/*	$NetBSD: asm.h,v 1.46 2014/03/06 19:05:24 matt Exp $	*/
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -106,7 +106,7 @@
 # define SF_LR		16
 # define SF_PARAM	SF_HEADER_SZ
 
-# define _ENTRY(y)			\
+# define _XENTRY(y)			\
 	.globl	y;			\
 	.pushsection ".opd","aw";	\
 	.align	3;			\
@@ -118,6 +118,8 @@ y:	.quad	.##y,.TOC.@tocbase,0;	\
 	.align	3;			\
 .##y:
 
+#define _ENTRY(x)	.text; _XENTRY(x)
+
 # define ENTRY(y) _ENTRY(y)
 
 # define END(y)	.size .##y,. - .##y
@@ -130,8 +132,8 @@ y:	.quad	.##y,.TOC.@tocbase,0;	\
 # define ASENTRY(y)		ENTRY(y)
 #else /* !_LP64 */
 
-# define _ENTRY(x) \
-	.text; .align 2; .globl x; .type x,@function; x:
+# define _XENTRY(x)	.align 2; .globl x; .type x,@function; x:
+# define _ENTRY(x)	.text; _XENTRY(x)
 
 # define ENTRY(y)	_ENTRY(_C_LABEL(y)); _PROF_PROLOGUE
 

Reply via email to