Removed IRQ routing test
authorBarret Rhoden <brho@cs.berkeley.edu>
Fri, 25 Apr 2014 23:38:05 +0000 (16:38 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Fri, 25 Apr 2014 23:38:05 +0000 (16:38 -0700)
Was getting sick of those #warnings during compile.

kern/include/testing.h
kern/src/testing.c

index 9aecae6..fdcbd3e 100644 (file)
@@ -11,7 +11,6 @@
 
 void test_ipi_sending(void);
 void test_pic_reception(void);
-void test_ioapic_pit_reroute(void);
 void test_print_info(void);
 void test_page_coloring(void);
 void test_color_alloc(void);
index ee5a797..83e8d94 100644 (file)
@@ -100,29 +100,6 @@ void test_pic_reception(void)
        while(1);
 }
 
-void test_ioapic_pit_reroute(void) 
-{
-       register_irq(IdtPIC + IrqCLOCK, test_hello_world_handler, NULL,
-                    MKBUS(BusISA, 0, 0, 0));
-#ifdef CONFIG_ENABLE_MPTABLES
-#warning "not routing the irq"
-       //ioapic_route_irq(0, 3);       
-#endif
-
-       cprintf("Starting pit on core 3....\n");
-       udelay(3000000);
-       pit_set_timer(0xFFFE,TIMER_RATEGEN); // totally arbitrary time
-       
-       udelay(3000000);
-#ifdef CONFIG_ENABLE_MPTABLES
-#warning "NOT unrouting the irq"
-       //ioapic_unroute_irq(0);
-#endif
-       udelay(300000);
-       cprintf("Masked pit. Waiting before return...\n");
-       udelay(3000000);
-}
-
 #endif // CONFIG_X86