Date: Tue, 29 Jun 2010 19:07:44 +0000 (UTC) From: Marcel Moolenaar <marcel@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r209591 - head/sys/powerpc/include Message-ID: <201006291907.o5TJ7itx010501@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201006291907.o5TJ7itx010501>