From 8148b6ee535b85e97f3b5f3a850b70fdfbbcaf2d Mon Sep 17 00:00:00 2001 From: rtm Date: Wed, 12 Jul 2006 11:15:38 +0000 Subject: i think my cmpxchg use was wrong in acquire nesting cli/sti: release shouldn't always enable interrupts separate setup of lapic from starting of other cpus, so cpu() works earlier flag to disable locking in console output make locks work even when curproc==0 (still crashes in clock interrupt) --- spinlock.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spinlock.h') diff --git a/spinlock.h b/spinlock.h index ee0a26c..a720b24 100644 --- a/spinlock.h +++ b/spinlock.h @@ -1,6 +1,6 @@ struct spinlock { unsigned int locked; - struct proc *p; + unsigned who; int count; unsigned locker_pc; }; -- cgit v1.2.3