Subject: re: CVS commit: src/sys/arch/sparc/sparc
To: None <pk@netbsd.org>
From: matthew green <mrg@eterna.com.au>
List: source-changes
Date: 01/13/2003 13:13:48
   
   Module Name:	src
   Committed By:	pk
   Date:		Mon Jan 13 01:35:47 UTC 2003
   
   Modified Files:
   	src/sys/arch/sparc/sparc: machdep.c
   
   Log Message:
   Halt any other CPUs in cpu_reboot().


+ #if defined(MULTIPROCESSOR)
+       UNLOCK_XPMSG(); /* XXX - in case we paniced in xcall() */
+       XCALL0(cpu_halt, CPUSET_ALL & ~(1 << cpu_number()));
+       delay(100);
+ #endif /* MULTIPROCESSOR */


yuck.  won't the unlock fail if it hasn't been locked?  or if it
has been locked by someone else?  also, won't this lose if we've
paniced?  other cpus will be splhigh?


.mrg.