diff options
author | marcel <marcel@FreeBSD.org> | 2010-07-01 03:48:45 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2010-07-01 03:48:45 +0000 |
commit | 5ae80181770514bc17324b91bf9afd39f5c68e14 (patch) | |
tree | feec7764b59b0ded619cf1ccfd70a86e6720a443 /sys/powerpc | |
parent | 9fe1156f87458b7f1141c7ad4c9bcdaeba3c3109 (diff) | |
download | FreeBSD-src-5ae80181770514bc17324b91bf9afd39f5c68e14.zip FreeBSD-src-5ae80181770514bc17324b91bf9afd39f5c68e14.tar.gz |
MFia64:
When compiling with profiling, we define PROF for userspace and GPROF
for the kernel.
Diffstat (limited to 'sys/powerpc')
-rw-r--r-- | sys/powerpc/include/asm.h | 2 |
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 |