summaryrefslogtreecommitdiff
path: root/trap.c
diff options
context:
space:
mode:
Diffstat (limited to 'trap.c')
-rw-r--r--trap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/trap.c b/trap.c
index 7ef32ff..0acc94b 100644
--- a/trap.c
+++ b/trap.c
@@ -45,7 +45,7 @@ trap(struct trapframe *tf)
}
// No interrupts during interrupt handling.
- splhi();
+ pushcli();
switch(tf->trapno){
case IRQ_OFFSET + IRQ_TIMER:
@@ -84,7 +84,7 @@ trap(struct trapframe *tf)
cp->killed = 1;
}
- spllo();
+ popcli();
// 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