Subject: CVS commit: [sommerfeld_i386mp_1] syssrc/sys/arch/i386/i386
To: None <source-changes@netbsd.org>
From: Bill Sommerfeld <sommerfeld@netbsd.org>
List: source-changes
Date: 04/30/2002 17:15:17
Module Name:	syssrc
Committed By:	sommerfeld
Date:		Tue Apr 30 14:15:16 UTC 2002

Modified Files:
	syssrc/sys/arch/i386/i386 [sommerfeld_i386mp_1]: 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 by Frank van der Linden <fvdl@wasabisystems.com>

Along for the ride:
	clean up register use during switch-to-idle.
	clean up comments regarding register use during context switch.


To generate a diff of this commit:
cvs rdiff -r1.215.2.31 -r1.215.2.32 syssrc/sys/arch/i386/i386/locore.s

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