diff options
author | rtm <rtm> | 2006-07-12 01:48:35 +0000 |
---|---|---|
committer | rtm <rtm> | 2006-07-12 01:48:35 +0000 |
commit | 4e8f237be819424f922399f8d121d9867b675541 (patch) | |
tree | 53459cfde9630b3ae0d2d46d0ce3d4c1ac423944 /mp.c | |
parent | b41b38d0da0854f3fa92967b70180ea1156154d4 (diff) | |
download | xv6-labs-4e8f237be819424f922399f8d121d9867b675541.tar.gz xv6-labs-4e8f237be819424f922399f8d121d9867b675541.tar.bz2 xv6-labs-4e8f237be819424f922399f8d121d9867b675541.zip |
no more big kernel lock
succeeds at usertests.c pipe test
Diffstat (limited to 'mp.c')
-rw-r--r-- | mp.c | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -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); } } |