summaryrefslogtreecommitdiff
path: root/trap.c
diff options
context:
space:
mode:
Diffstat (limited to 'trap.c')
-rw-r--r--trap.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/trap.c b/trap.c
index b210541..78a62f0 100644
--- a/trap.c
+++ b/trap.c
@@ -71,13 +71,8 @@ trap(struct Trapframe *tf)
if(cpus[cpu()].nlock)
panic("timer interrupt while holding a lock");
if(cp){
-#if 1
if((read_eflags() & FL_IF) == 0)
panic("timer interrupt but interrupts now disabled");
-#else
- cpus[cpu()].clis += 1;
- sti();
-#endif
if(cp->killed)
proc_exit();
if(cp->state == RUNNING)