From 89eb5fbe6d120f19d69c3c84bed69611a746ff03 Mon Sep 17 00:00:00 2001 From: rtm Date: Sat, 24 Jun 2006 22:47:06 +0000 Subject: boot more than two CPUs, each on own initial stack --- proc.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'proc.c') diff --git a/proc.c b/proc.c index e771c4d..45696a2 100644 --- a/proc.c +++ b/proc.c @@ -112,6 +112,10 @@ swtch() acquire_spinlock(&kernel_lock); } + // XXX this may be too late, should probably save on the way + // in, in case some other CPU decided to run curproc + // before we got here. in fact setting state=WAITING and + // setting these variables had better be atomic w.r.t. other CPUs. op->ebp = read_ebp(); op->esp = read_esp(); -- cgit v1.2.3