Subject: CVS commit: syssrc
To: None <source-changes@netbsd.org>
From: Christos Zoulas <christos@netbsd.org>
List: source-changes
Date: 06/18/2001 05:04:44
Module Name:	syssrc
Committed By:	christos
Date:		Mon Jun 18 02:04:44 UTC 2001

Added Files:
	syssrc/sys/arch/alpha/alpha: linux_trap.c
	syssrc/sys/arch/i386/i386: linux_trap.c
	syssrc/sys/arch/m68k/m68k: linux_trap.c
	syssrc/sys/arch/powerpc/powerpc: linux_trap.c

Log Message:
Add a linux specific trapsignal() function. This is just a passthrough
on all platforms but the i386. On the i386 we look at T_PROTFLT and send
a SIGSEGV instead of SIGBUS. This makes allegro lisp 5.0 and pvs (a proof
verification system) to work.

XXX[1]: We need to go through each architecture and verify that we send
        the correct signal on each trap type.
XXX[2]: trap.c on all other architectures but i386 needs to be modified
        to s/trapsignal/(*p->p_emul->e_trapsignal)/g


To generate a diff of this commit:
cvs rdiff -r0 -r1.1 syssrc/sys/arch/alpha/alpha/linux_trap.c
cvs rdiff -r0 -r1.1 syssrc/sys/arch/i386/i386/linux_trap.c
cvs rdiff -r0 -r1.1 syssrc/sys/arch/m68k/m68k/linux_trap.c
cvs rdiff -r0 -r1.1 syssrc/sys/arch/powerpc/powerpc/linux_trap.c

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