svn commit: r209621 - head/sys/powerpc/include

Marcel Moolenaar marcel at FreeBSD.org
Thu Jul 1 03:48:45 UTC 2010


Author: marcel
Date: Thu Jul  1 03:48:45 2010
New Revision: 209621
URL: http://svn.freebsd.org/changeset/base/209621

Log:
  MFia64:
  When compiling with profiling, we define PROF for userspace and GPROF
  for the kernel.

Modified:
  head/sys/powerpc/include/asm.h

Modified: head/sys/powerpc/include/asm.h
==============================================================================
--- head/sys/powerpc/include/asm.h	Thu Jul  1 00:48:00 2010	(r209620)
+++ head/sys/powerpc/include/asm.h	Thu Jul  1 03:48:45 2010	(r209621)
@@ -63,7 +63,7 @@
 #define	_ENTRY(x) \
 	.text; .align 4; .globl x; .type x, at 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


More information about the svn-src-all mailing list