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,@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
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to