From 4638cabf8c52c5f08f83942103f2375d2ed46388 Mon Sep 17 00:00:00 2001 From: Robert Morris Date: Tue, 29 Aug 2017 14:11:59 -0400 Subject: fix runoff complaints about pagination and long lines --- trap.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'trap.c') diff --git a/trap.c b/trap.c index b5eba82..41c66eb 100644 --- a/trap.c +++ b/trap.c @@ -89,8 +89,8 @@ trap(struct trapframe *tf) // In user space, assume process misbehaved. cprintf("pid %d %s: trap %d err %d on cpu %d " "eip 0x%x addr 0x%x--kill proc\n", - myproc()->pid, myproc()->name, tf->trapno, tf->err, cpuid(), tf->eip, - rcr2()); + myproc()->pid, myproc()->name, tf->trapno, + tf->err, cpuid(), tf->eip, rcr2()); myproc()->killed = 1; } @@ -102,7 +102,8 @@ trap(struct trapframe *tf) // Force process to give up CPU on clock tick. // If interrupts were on while locks held, would need to check nlock. - if(myproc() && myproc()->state == RUNNING && tf->trapno == T_IRQ0+IRQ_TIMER) + if(myproc() && myproc()->state == RUNNING && + tf->trapno == T_IRQ0+IRQ_TIMER) yield(); // Check if the process has been killed since we yielded -- cgit v1.2.3