Skip to content

Commit

Permalink
now spllo is okay
Browse files Browse the repository at this point in the history
  • Loading branch information
rsc committed Sep 27, 2007
1 parent b5dcebd commit 8c8b748
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions trap.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,8 @@ trap(struct trapframe *tf)
cp->pid, cp->name, tf->trapno, tf->err, cpu(), tf->eip);
cp->killed = 1;
}

// Undo splhi but do not enable interrupts.
// If you change this to spllo() you can get a
// triple fault by just typing too fast at the prompt.
// An interrupt stops us right here, and when that
// interrupt tries to return, somehow the segment
// registers are all invalid.
--cpus[cpu()].nsplhi;

spllo();

// Force process exit if it has been killed and is in user space.
// (If it is still executing in the kernel, let it keep running
Expand Down

0 comments on commit 8c8b748

Please sign in to comment.