Subject: CVS commit: src/sys/arch/sparc/sparc
To: None <source-changes@NetBSD.org>
From: Martin Husemann <martin@netbsd.org>
List: source-changes
Date: 06/29/2006 15:05:07
Module Name:	src
Committed By:	martin
Date:		Thu Jun 29 15:05:07 UTC 2006

Modified Files:
	src/sys/arch/sparc/sparc: syscall.c trap.c

Log Message:
The arguments to syscalls (struct args) need 64 bit alignment for some
syscalls (like mmap), and the same is true for return values (lseek).
Make both structs a union to force alignment. Thanks to uwe for helping
analyze this!
While there move the non syscall-related functions out of this file
(back to trap.c).

This makes kernels compiled with gcc4 and -Os work.


To generate a diff of this commit:
cvs rdiff -r1.9 -r1.10 src/sys/arch/sparc/sparc/syscall.c
cvs rdiff -r1.167 -r1.168 src/sys/arch/sparc/sparc/trap.c

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