Subject: CVS commit: src/sys/arch/amd64
To: None <source-changes@NetBSD.org>
From: David Laight <dsl@netbsd.org>
List: source-changes
Date: 01/05/2008 12:08:51
Module Name:	src
Committed By:	dsl
Date:		Sat Jan  5 12:08:51 UTC 2008

Modified Files:
	src/sys/arch/amd64/amd64: linux_syscall.c syscall.c
	src/sys/arch/amd64/include: frame_regs.h reg.h

Log Message:
Reorder the amd64 trapframe (swap rcx/r10 and add 4 spare slots after r9).
This allows the syscall code to pass the syscall args directly from the
trapframe instead of copying them to a separate structure.
It is still possible that some lurking code still assumes that
'struct trapframe', 'struct mcontext' and 'struct reg' all have the
registers in the same order, but I've fixed enough of them to get gdb working.


To generate a diff of this commit:
cvs rdiff -r1.18 -r1.19 src/sys/arch/amd64/amd64/linux_syscall.c
cvs rdiff -r1.34 -r1.35 src/sys/arch/amd64/amd64/syscall.c
cvs rdiff -r1.2 -r1.3 src/sys/arch/amd64/include/frame_regs.h
cvs rdiff -r1.5 -r1.6 src/sys/arch/amd64/include/reg.h

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