Subject: Re: An MP stability problem fixed
To: None <thorpej@wasabisystems.com>
From: David Hopper <dhop@nwlink.com>
List: port-alpha
Date: 04/30/2002 13:33:42
Thanks for stomping on that one!  I'll be checking this out on my tincup
with the next tarball (curse this sup-blocking firewall...)

Jason R Thorpe wrote:
> 
> For anyone who's been running NetBSD/alpha with multiprocessor support
> enabled, this should fix a stability problem that appears as the kernel
> jumping to a completely invalid address.
> 
> ----- Forwarded message from Jason R Thorpe <thorpej@netbsd.org> -----
> 
> To: source-changes@netbsd.org
> Date: Tue, 30 Apr 2002 19:05:14 +0300 (EEST)
> From: Jason R Thorpe <thorpej@netbsd.org>
> Subject: CVS commit: syssrc/sys/arch/alpha/alpha
> 
> Module Name:    syssrc
> Committed By:   thorpej
> Date:           Tue Apr 30 16:05:14 UTC 2002
> 
> Modified Files:
>         syssrc/sys/arch/alpha/alpha: locore.s
> 
> Log Message:
> Move call to sched_unlock_idle to later in the context switch to
> eliminate a race where another processor could grab the outgoing
> process before we were done saving our state into it, with predictable
> results.
> 
> Bug spotted on i386 by Frank van der Linden <fvdl@wasabisystems.com>.
> 
> To generate a diff of this commit:
> cvs rdiff -r1.98 -r1.99 syssrc/sys/arch/alpha/alpha/locore.s
> 
> Please note that diffs are not public domain; they are subject to the
> copyright notices on the relevant files.
> 
> ----- End forwarded message -----
> 
> --
>         -- Jason R. Thorpe <thorpej@wasabisystems.com>