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,@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; _______________________________________________ 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"