Subject: CVS commit: src/sys
To: None <source-changes@NetBSD.org>
From: Chuck Silvers <chs@netbsd.org>
List: source-changes
Date: 01/30/2005 16:56:27
Module Name:	src
Committed By:	chs
Date:		Sun Jan 30 16:56:27 UTC 2005

Modified Files:
	src/sys/arch/sparc/sparc: machdep.c
	src/sys/arch/sparc64/sparc64: machdep.c
	src/sys/kern: kern_sa.c
	src/sys/sys: lwp.h

Log Message:
define a new LWP flag which indicates that we're in the process of
doing a context switch.  use this on sparc and sparc64 to avoid trying
to access user memory (writing the register windows back to the stack)
in this case (since it's both unnecessary and wrong).


To generate a diff of this commit:
cvs rdiff -r1.251 -r1.252 src/sys/arch/sparc/sparc/machdep.c
cvs rdiff -r1.176 -r1.177 src/sys/arch/sparc64/sparc64/machdep.c
cvs rdiff -r1.56 -r1.57 src/sys/kern/kern_sa.c
cvs rdiff -r1.24 -r1.25 src/sys/sys/lwp.h

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