]> Devi Nivas Git - cs3210-lab1.git/commitdiff
now spllo is okay
authorrsc <rsc>
Thu, 27 Sep 2007 19:35:25 +0000 (19:35 +0000)
committerrsc <rsc>
Thu, 27 Sep 2007 19:35:25 +0000 (19:35 +0000)
trap.c

diff --git a/trap.c b/trap.c
index 9e8d09ae647a61aa5ab8bed9de851b52512ca794..7ef32ffd3a22cae66cc8d72fa249d51cb1116446 100644 (file)
--- a/trap.c
+++ b/trap.c
@@ -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