From 4e8f237be819424f922399f8d121d9867b675541 Mon Sep 17 00:00:00 2001 From: rtm Date: Wed, 12 Jul 2006 01:48:35 +0000 Subject: no more big kernel lock succeeds at usertests.c pipe test --- mp.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'mp.c') diff --git a/mp.c b/mp.c index 2b2a612..4258aba 100644 --- a/mp.c +++ b/mp.c @@ -391,15 +391,11 @@ mp_init() memmove((void *) APBOOTCODE,_binary_bootother_start, (uint32_t) _binary_bootother_size); - acquire_spinlock(&kernel_lock); for(c = 0; c < ncpu; c++){ if (cpus+c == bcpu) continue; cprintf ("starting processor %d\n", c); - release_grant_spinlock(&kernel_lock, c); *(unsigned *)(APBOOTCODE-4) = (unsigned) (cpus[c].mpstack) + MPSTACK; // tell it what to use for %esp *(unsigned *)(APBOOTCODE-8) = (unsigned)&main; // tell it where to jump to lapic_startap(cpus + c, (uint32_t) APBOOTCODE); - acquire_spinlock(&kernel_lock); - cprintf ("done starting processor %d\n", c); } } -- cgit v1.2.3