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

Marcel Moolenaar marcel at FreeBSD.org
Tue Jun 29 19:07:45 UTC 2010


Author: marcel
Date: Tue Jun 29 19:07:44 2010
New Revision: 209591
URL: http://svn.freebsd.org/changeset/base/209591

Log:
  Fix profiling (part 1):
  o   Functions are 4-byte aligned for Book-E.
  o   We get compiled with -DPROF and not -DGPROF if profiling
      is enabled.

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

Modified: head/sys/powerpc/include/asm.h
==============================================================================
--- head/sys/powerpc/include/asm.h	Tue Jun 29 17:10:55 2010	(r209590)
+++ head/sys/powerpc/include/asm.h	Tue Jun 29 19:07:44 2010	(r209591)
@@ -63,7 +63,7 @@
 #define	_ENTRY(x) \
 	.text; .align 4; .globl x; .type x, at function; x:
 
-#ifdef GPROF
+#ifdef PROF
 # define	_PROF_PROLOGUE	mflr 0; stw 0,4(1); bl _mcount
 #else
 # define	_PROF_PROLOGUE

Modified: head/sys/powerpc/include/profile.h
==============================================================================
--- head/sys/powerpc/include/profile.h	Tue Jun 29 17:10:55 2010	(r209590)
+++ head/sys/powerpc/include/profile.h	Tue Jun 29 19:07:44 2010	(r209591)
@@ -34,7 +34,7 @@
 
 #define	_MCOUNT_DECL	void __mcount
 
-#define FUNCTION_ALIGNMENT 16
+#define	FUNCTION_ALIGNMENT	4
 
 typedef u_int	fptrdiff_t;
 


More information about the svn-src-all mailing list