diff options
Diffstat (limited to 'spinlock.c')
-rw-r--r-- | spinlock.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -10,7 +10,7 @@ // because cprintf uses them itself. #define cprintf dont_use_cprintf -extern int bootstrap; +extern int use_console_lock; int getcallerpc(void *v) @@ -34,7 +34,7 @@ release(struct spinlock * lock) { cpuid(0, 0, 0, 0, 0); // memory barrier lock->locked = 0; - if(--cpus[cpu()].nlock == 0 && !bootstrap) + if(--cpus[cpu()].nlock == 0) sti(); } |