now spllo is okay
This commit is contained in:
parent
b5dcebdbeb
commit
8c8b748a2f
8
trap.c
8
trap.c
|
@ -84,13 +84,7 @@ trap(struct trapframe *tf)
|
||||||
cp->killed = 1;
|
cp->killed = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Undo splhi but do not enable interrupts.
|
spllo();
|
||||||
// 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;
|
|
||||||
|
|
||||||
// Force process exit if it has been killed and is in user space.
|
// 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
|
// (If it is still executing in the kernel, let it keep running
|
||||||
|
|
Loading…
Reference in a new issue