Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc/include Add _XENTRY which doesn't set the s...
details: https://anonhg.NetBSD.org/src/rev/5037a0e5f753
branches: trunk
changeset: 327395:5037a0e5f753
user: matt <matt%NetBSD.org@localhost>
date: Thu Mar 06 19:05:24 2014 +0000
description:
Add _XENTRY which doesn't set the section to .text
diffstat:
sys/arch/powerpc/include/asm.h | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diffs (38 lines):
diff -r 4e867881e8cd -r 5037a0e5f753 sys/arch/powerpc/include/asm.h
--- a/sys/arch/powerpc/include/asm.h Thu Mar 06 19:02:58 2014 +0000
+++ b/sys/arch/powerpc/include/asm.h Thu Mar 06 19:05:24 2014 +0000
@@ -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 @@
.align 3; \
.##y:
+#define _ENTRY(x) .text; _XENTRY(x)
+
# define ENTRY(y) _ENTRY(y)
# define END(y) .size .##y,. - .##y
@@ -130,8 +132,8 @@
# 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
Home |
Main Index |
Thread Index |
Old Index