Subject: Re: kern/27023
To: None <,,>
From: None <>
List: netbsd-bugs
Date: 02/03/2005 16:50:22
Synopsis: kernel crashes in LWP code from userland

State-Changed-From-To: open->closed
State-Changed-When: Thu, 03 Feb 2005 16:50:21 +0000
fixed by this check-in:

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