void * Allocate_VMM_Pages(int num_pages) {
void * start_page = Alloc_Page();
- //SerialPrint("Allocating Page: %x (%d of %d)\n",start_page, 1, num_pages);
+ //SerialPrint("Starting by Allocating Page: %x (%d of %d)\n",start_page, 1, num_pages);
int i = 1;
while (i < num_pages) {
i--;
}
start_page = Alloc_Page();
- //SerialPrint("Allocating Page: %x (%d of %d)\n",start_page, 1, num_pages);
+ //SerialPrint("Starting over by Allocating Page: %x (%d of %d)\n",start_page, 1, num_pages);
i = 1;
continue;
}
SerialPrint("Hooking IRQ: %d (vm=0x%x)\n", irq, info);
irq_map[irq] = info;
+ volatile void *foo = pic_intr_handler;
+ foo=0;
+ Disable_IRQ(irq);
Install_IRQ(irq, pic_intr_handler);
Enable_IRQ(irq);
return 0;