summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/include/asm.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/powerpc/include/asm.h')
-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