Enabled interrupts in the int driven kernel monitor
authorKevin Klues <klueska@parcad.millennium.berkeley.edu>
Fri, 23 Apr 2010 23:34:09 +0000 (16:34 -0700)
committerKevin Klues <klueska@cs.berkeley.edu>
Thu, 3 Nov 2011 00:35:44 +0000 (17:35 -0700)
kern/arch/i686/init.c

index 851361f..ff650bf 100644 (file)
@@ -61,6 +61,9 @@ void arch_init()
         * up interrupt */
        void mon_int(struct trapframe *tf, void *data)
        {
+               // Enable interrupts here so that we can receive 
+               // other interrupts (e.g. from the NIC)
+               enable_irq();
                if (cons_getc())
                        monitor(0);
        }