summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2010-07-01 03:48:45 +0000
committermarcel <marcel@FreeBSD.org>2010-07-01 03:48:45 +0000
commit5ae80181770514bc17324b91bf9afd39f5c68e14 (patch)
treefeec7764b59b0ded619cf1ccfd70a86e6720a443
parent9fe1156f87458b7f1141c7ad4c9bcdaeba3c3109 (diff)
downloadFreeBSD-src-5ae80181770514bc17324b91bf9afd39f5c68e14.zip
FreeBSD-src-5ae80181770514bc17324b91bf9afd39f5c68e14.tar.gz
MFia64:
When compiling with profiling, we define PROF for userspace and GPROF for the kernel.
-rw-r--r--sys/powerpc/include/asm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/powerpc/include/asm.h b/sys/powerpc/include/asm.h
index f80c118..1fc10ef 100644
--- a/sys/powerpc/include/asm.h
+++ b/sys/powerpc/include/asm.h
@@ -63,7 +63,7 @@
#define _ENTRY(x) \
.text; .align 4; .globl x; .type x,@function; x:
-#ifdef PROF
+#if defined(PROF) || (defined(_KERNEL) && defined(GPROF))
# define _PROF_PROLOGUE mflr 0; stw 0,4(1); bl _mcount
#else
# define _PROF_PROLOGUE
OpenPOWER on IntegriCloud