When compiling with profiling, we define PROF for userspace and GPROF
for the kernel.
This commit is contained in:
Marcel Moolenaar 2010-07-01 03:48:45 +00:00
parent af448c52e4
commit dc54fa1d55

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