From 31d3baa2e06aa10fc501da6b32f4fab5fc19fe90 Mon Sep 17 00:00:00 2001 From: Steve Passe Date: Fri, 27 Jun 1997 23:38:32 +0000 Subject: [PATCH] Initialize private variable other_cpus during AP boot. --- sys/kern/init_smp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/kern/init_smp.c b/sys/kern/init_smp.c index b972872b193..c7ad542bc68 100644 --- a/sys/kern/init_smp.c +++ b/sys/kern/init_smp.c @@ -22,7 +22,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: init_smp.c,v 1.6 1997/05/06 07:10:06 fsmp Exp $ + * $Id: init_smp.c,v 1.1 1997/06/27 18:32:57 smp Exp smp $ */ #include "opt_smp.h" @@ -173,6 +173,9 @@ secondary_main() cpu_starting = cpuid; smp_cpus++; + /* build our map of 'other' CPUs */ + other_cpus = all_cpus & ~(1 << cpuid); + printf("SMP: AP CPU #%d LAUNCHED!! Starting Scheduling...\n", cpuid);