When compiling with profiling, we define PROF for userspace and GPROF
for the kernel.
This commit is contained in:
marcel 2010-07-01 03:48:45 +00:00
parent 9fe1156f87
commit 5ae8018177

View File

@ -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