diff --git a/sys/powerpc/include/asm.h b/sys/powerpc/include/asm.h index f80c118996e..1fc10efe46a 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