summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2010-07-01 00:30:35 +0000
committermarcel <marcel@FreeBSD.org>2010-07-01 00:30:35 +0000
commitf9988e6402dfb9bb3fd2cf2639af41acd7e63828 (patch)
tree91a3386bbd2120ac9348ee8eb79532c57b5c70fb
parent88c7d17a4c34d41518aeb9bedabb00a0855261d5 (diff)
downloadFreeBSD-src-f9988e6402dfb9bb3fd2cf2639af41acd7e63828.zip
FreeBSD-src-f9988e6402dfb9bb3fd2cf2639af41acd7e63828.tar.gz
When compiling with profiling, we define PROF for userspace and GPROF
for the kernel.
-rw-r--r--sys/ia64/include/asm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ia64/include/asm.h b/sys/ia64/include/asm.h
index 016bc87..4b4236d 100644
--- a/sys/ia64/include/asm.h
+++ b/sys/ia64/include/asm.h
@@ -43,7 +43,7 @@
/*
* MCOUNT
*/
-#if defined(GPROF)
+#if defined(PROF) || (defined(_KERNEL) && defined(GPROF))
#define MCOUNT \
alloc out0 = ar.pfs, 8, 0, 4, 0; \
mov out1 = r1; \
OpenPOWER on IntegriCloud