summaryrefslogtreecommitdiff
path: root/sys/arch/i386/include
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2006-04-24 14:30:08 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2006-04-24 14:30:08 +0000
commitb7361c3a4681009fbce3cebb5c2f418352b02a3e (patch)
tree7c87c7ccbdc436e859055ee71eb08503df38abe4 /sys/arch/i386/include
parent5e7075548fac0778043867b2567677c7223145e8 (diff)
Enable profling in asm if either PROF or GPROF is enabled, kernel profiling
builds with GPROF, libraries build with PROF. ok espie, miod
Diffstat (limited to 'sys/arch/i386/include')
-rw-r--r--sys/arch/i386/include/asm.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/i386/include/asm.h b/sys/arch/i386/include/asm.h
index f2da5755a33..86f17269d03 100644
--- a/sys/arch/i386/include/asm.h
+++ b/sys/arch/i386/include/asm.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: asm.h,v 1.8 2004/06/13 21:49:16 niklas Exp $ */
+/* $OpenBSD: asm.h,v 1.9 2006/04/24 14:30:07 drahn Exp $ */
/* $NetBSD: asm.h,v 1.7 1994/10/27 04:15:56 cgd Exp $ */
/*-
@@ -92,7 +92,7 @@
#define _ENTRY(x) \
.text; _ALIGN_TEXT; .globl x; .type x,@function; x:
-#ifdef GPROF
+#if defined(PROF) || defined(GPROF)
# define _PROF_PROLOGUE \
pushl %ebp; movl %esp,%ebp; call PIC_PLT(mcount); popl %ebp
#else
@@ -102,6 +102,7 @@
#define ENTRY(y) _ENTRY(_C_LABEL(y)); _PROF_PROLOGUE
#define NENTRY(y) _ENTRY(_C_LABEL(y))
#define ASENTRY(y) _ENTRY(_ASM_LABEL(y)); _PROF_PROLOGUE
+#define NASENTRY(y) _ENTRY(_ASM_LABEL(y))
#define ALTENTRY(name) .globl _C_LABEL(name); _C_LABEL(name):