Subject: CVS commit: [netbsd-4] src/lib/libc/arch/x86_64/gen
To: None <source-changes@NetBSD.org>
From: Soren Jacobsen <snj@netbsd.org>
List: source-changes
Date: 05/07/2007 02:48:03
Module Name:	src
Committed By:	snj
Date:		Mon May  7 02:48:03 UTC 2007

Modified Files:
	src/lib/libc/arch/x86_64/gen [netbsd-4]: swapcontext.S

Log Message:
Pull up following revision(s) (requested by pooka in ticket #605):
	lib/libc/arch/x86_64/gen/swapcontext.S: revision 1.4
Don't clobber callee save registers r12 & r13 in swapcontext.  They
were saved in the stack, but the subsequent swapcontext would return
to the earlier stack frame and never restore them.  Fixes puffs
with default compiler flags on amd64.
Thanks to Mihai Chelaru for providing access to an amd64 machine
for debugging this problem.


To generate a diff of this commit:
cvs rdiff -r1.3 -r1.3.10.1 src/lib/libc/arch/x86_64/gen/swapcontext.S

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