From 5ae80181770514bc17324b91bf9afd39f5c68e14 Mon Sep 17 00:00:00 2001 From: marcel Date: Thu, 1 Jul 2010 03:48:45 +0000 Subject: MFia64: When compiling with profiling, we define PROF for userspace and GPROF for the kernel. --- sys/powerpc/include/asm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.1