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) --- proc.h | 1 + 1 file changed, 1 insertion(+) (limited to 'proc.h') diff --git a/proc.h b/proc.h index b9ec246..4c5807b 100644 --- a/proc.h +++ b/proc.h @@ -69,6 +69,7 @@ struct cpu { struct jmpbuf jmpbuf; char mpstack[MPSTACK]; // per-cpu start-up stack, only used to get into main() struct proc *lastproc; // last proc scheduled on this cpu (never NULL) + int clis; // cli() nesting depth }; extern struct cpu cpus[NCPU]; -- cgit v1.2.3