X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fgeekos%2Fvmm_stubs.c;h=aae237676aded553b802a7eccfae817bc2b79bc0;hb=2b1f4ef19d766727f873476861c64339c8836a40;hp=28f1126170a0fcd360bb2ee8c0af941703eb5a89;hpb=624a05de781c51ed5d34a6db2583f884918a9594;p=palacios.git diff --git a/palacios/src/geekos/vmm_stubs.c b/palacios/src/geekos/vmm_stubs.c index 28f1126..aae2376 100644 --- a/palacios/src/geekos/vmm_stubs.c +++ b/palacios/src/geekos/vmm_stubs.c @@ -7,7 +7,7 @@ void * Identity(void *addr) { return addr; }; 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) { @@ -21,7 +21,7 @@ void * Allocate_VMM_Pages(int 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; } @@ -75,8 +75,9 @@ int hook_irq_stub(struct guest_info * info, int irq) { irq_map[irq] = info; volatile void *foo = pic_intr_handler; foo=0; - // Install_IRQ(irq, pic_intr_handler); - // Enable_IRQ(irq); + Disable_IRQ(irq); + Install_IRQ(irq, pic_intr_handler); + Enable_IRQ(irq); return 0; }