From ceb0e427962d0656e672955585c04093b9efda90 Mon Sep 17 00:00:00 2001 From: rtm Date: Wed, 16 Aug 2006 01:56:00 +0000 Subject: proc[0] can sleep(), at least after it gets to main00() proc[0] calls iget(rootdev, 1) before forking init --- trap.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'trap.c') diff --git a/trap.c b/trap.c index 2bb3e9e..9d1482f 100644 --- a/trap.c +++ b/trap.c @@ -126,6 +126,8 @@ trap(struct trapframe *tf) } cprintf("trap %d from cpu %d eip %x\n", v, cpu(), tf->eip); + if(curproc[cpu()]) + cprintf("pid %d\n", curproc[cpu()]->pid); panic("trap"); return; -- cgit v1.2.3