Subject: CVS commit: syssrc/sys
To: None <source-changes@netbsd.org>
From: Emmanuel Dreyfus <manu@netbsd.org>
List: source-changes
Date: 11/15/2002 22:06:05
Module Name:	syssrc
Committed By:	manu
Date:		Fri Nov 15 20:06:04 UTC 2002

Modified Files:
	syssrc/sys/arch/alpha/alpha: linux_syscall.c osf1_syscall.c syscall.c
	syssrc/sys/arch/arm/arm: linux_syscall.c
	syssrc/sys/arch/hppa/hppa: trap.c
	syssrc/sys/arch/i386/i386: freebsd_syscall.c ibcs2_syscall.c
	    linux_syscall.c mach_syscall.c svr4_syscall.c
	syssrc/sys/arch/m68k/m68k: linux_syscall.c m68k_syscall.c
	    sunos_syscall.c
	syssrc/sys/arch/mips/mips: syscall.c
	syssrc/sys/arch/pc532/pc532: trap.c
	syssrc/sys/arch/powerpc/powerpc: syscall.c
	syssrc/sys/arch/sh3/sh3: exception.c
	syssrc/sys/arch/sh5/sh5: syscall.c
	syssrc/sys/arch/sparc/sparc: trap.c
	syssrc/sys/arch/x86_64/x86_64: netbsd32_syscall.c syscall.c
	syssrc/sys/kern: kern_ktrace.c

Log Message:
Add a realcode argument to trace_enter and ktrsyscall. realcode is the
original system call number, which can be negative for a Mach trap.
We cannot just replace code by realcode, because ktrsyscall uses it as
an index in the system call table, thus crashing the kernel when the
value is negative.


To generate a diff of this commit:
cvs rdiff -r1.7 -r1.8 syssrc/sys/arch/alpha/alpha/linux_syscall.c
cvs rdiff -r1.9 -r1.10 syssrc/sys/arch/alpha/alpha/osf1_syscall.c
cvs rdiff -r1.4 -r1.5 syssrc/sys/arch/alpha/alpha/syscall.c
cvs rdiff -r1.5 -r1.6 syssrc/sys/arch/arm/arm/linux_syscall.c
cvs rdiff -r1.4 -r1.5 syssrc/sys/arch/hppa/hppa/trap.c
cvs rdiff -r1.9 -r1.10 syssrc/sys/arch/i386/i386/freebsd_syscall.c
cvs rdiff -r1.18 -r1.19 syssrc/sys/arch/i386/i386/ibcs2_syscall.c
cvs rdiff -r1.21 -r1.22 syssrc/sys/arch/i386/i386/linux_syscall.c
cvs rdiff -r1.4 -r1.5 syssrc/sys/arch/i386/i386/mach_syscall.c
cvs rdiff -r1.17 -r1.18 syssrc/sys/arch/i386/i386/svr4_syscall.c
cvs rdiff -r1.1 -r1.2 syssrc/sys/arch/m68k/m68k/linux_syscall.c \
    syssrc/sys/arch/m68k/m68k/sunos_syscall.c
cvs rdiff -r1.4 -r1.5 syssrc/sys/arch/m68k/m68k/m68k_syscall.c
cvs rdiff -r1.11 -r1.12 syssrc/sys/arch/mips/mips/syscall.c
cvs rdiff -r1.48 -r1.49 syssrc/sys/arch/pc532/pc532/trap.c
cvs rdiff -r1.13 -r1.14 syssrc/sys/arch/powerpc/powerpc/syscall.c
cvs rdiff -r1.2 -r1.3 syssrc/sys/arch/sh3/sh3/exception.c
cvs rdiff -r1.4 -r1.5 syssrc/sys/arch/sh5/sh5/syscall.c
cvs rdiff -r1.112 -r1.113 syssrc/sys/arch/sparc/sparc/trap.c
cvs rdiff -r1.7 -r1.8 syssrc/sys/arch/x86_64/x86_64/netbsd32_syscall.c
cvs rdiff -r1.6 -r1.7 syssrc/sys/arch/x86_64/x86_64/syscall.c
cvs rdiff -r1.60 -r1.61 syssrc/sys/kern/kern_ktrace.c

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