Subject: CVS commit: src
To: None <source-changes@NetBSD.org>
From: Nick Hudson <skrll@netbsd.org>
List: source-changes
Date: 11/12/2007 12:58:11
Module Name:	src
Committed By:	skrll
Date:		Mon Nov 12 12:58:11 UTC 2007

Modified Files:
	src/gnu/dist/gcc4/gcc/config/pa: pa-netbsd.h
	src/sys/arch/hp700/hp700: locore.S
	src/sys/arch/hppa/hppa: copy.S fpemu.S trap.S
	src/sys/arch/hppa/include: asm.h profile.h

Log Message:
Fix kernel profiling on HPPA.

- stop gcc emitting stuff that HPUX requires
- don't use splhigh() in MCOUNT_ENTER as a call to _mcount will be
  generated at the moment. Disable interrupts in hardware instead.
- Fix _PROF_PROLOGUE to save/restore all the register args when calling
  _mcount.
- Fixup LEAF_ENTRY to dtrt (I think) in the GPROF case.
- Provide LEAF_ENTRY_NOPROFILE and sprinkle its use where i) profiling
  causes problems, e.g. trap handlers, and ii) where it just doesn't
  make sense, e.g. start.


To generate a diff of this commit:
cvs rdiff -r1.3 -r1.4 src/gnu/dist/gcc4/gcc/config/pa/pa-netbsd.h
cvs rdiff -r1.25 -r1.26 src/sys/arch/hp700/hp700/locore.S
cvs rdiff -r1.5 -r1.6 src/sys/arch/hppa/hppa/copy.S
cvs rdiff -r1.3 -r1.4 src/sys/arch/hppa/hppa/fpemu.S
cvs rdiff -r1.21 -r1.22 src/sys/arch/hppa/hppa/trap.S
cvs rdiff -r1.7 -r1.8 src/sys/arch/hppa/include/asm.h \
    src/sys/arch/hppa/include/profile.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.