Subject: CVS commit: syssrc/sys/arch/sparc/sparc
To: None <source-changes@netbsd.org>
From: Paul Kranenburg <pk@netbsd.org>
List: source-changes
Date: 12/30/2001 20:52:54
Module Name:	syssrc
Committed By:	pk
Date:		Sun Dec 30 18:52:54 UTC 2001

Modified Files:
	syssrc/sys/arch/sparc/sparc: vm_machdep.c

Log Message:
In cpu_fork() set tf_npc as well in case a signal is taken in child_return()
which will cause the values of tf_pc and tf_npc set here in cpu_fork()
to be restored and used to return to user space from sigreturn() eventually
(before that the tf_pc and tf_npc set in sendsig() will be used in
proc_trampoline()).

Also, the fork system call never uses the SYSCALL_G2RFLAG shortcut, so drop
the code handling that.


To generate a diff of this commit:
cvs rdiff -r1.61 -r1.62 syssrc/sys/arch/sparc/sparc/vm_machdep.c

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