From f1f8dd91bc4e8b58972f17416b664f3a950092cd Mon Sep 17 00:00:00 2001 From: rsc Date: Tue, 14 Aug 2007 18:42:34 +0000 Subject: formatting --- trap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'trap.c') diff --git a/trap.c b/trap.c index 1faa49e..43b5a42 100644 --- a/trap.c +++ b/trap.c @@ -40,11 +40,11 @@ trap(struct trapframe *tf) return; } - // PAGEBREAK: 10 // Increment nlock to make sure interrupts stay off // during interrupt handler. Decrement before returning. cpus[cpu()].nlock++; + // PAGEBREAK: 10 switch(tf->trapno){ case IRQ_OFFSET + IRQ_TIMER: lapic_timerintr(); @@ -80,8 +80,8 @@ trap(struct trapframe *tf) default: if(cp) { // Assume process divided by zero or dereferenced null, etc. - cprintf("pid %d %s: unhandled trap %d on cpu %d eip %x -- kill proc\n", - cp->pid, cp->name, tf->trapno, cpu(), tf->eip); + cprintf("pid %d %s: unhandled trap %d err %d on cpu %d eip %x -- kill proc\n", + cp->pid, cp->name, tf->trapno, tf->err, cpu(), tf->eip); proc_exit(); } -- cgit v1.2.3