X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fgeekos%2Fvmm_stubs.c;h=4c370333db3c72255fc3d4f8457d499aecafea5f;hb=3f025fd4e0e535801836faa4259b94b18b94f231;hp=96145dbb040b8317a691c207d3a31a6b491197c2;hpb=04fc4c8fbac29e04f0d0817a2906687c2c972559;p=palacios-OLD.git diff --git a/palacios/src/geekos/vmm_stubs.c b/palacios/src/geekos/vmm_stubs.c index 96145db..4c37033 100644 --- a/palacios/src/geekos/vmm_stubs.c +++ b/palacios/src/geekos/vmm_stubs.c @@ -2,14 +2,17 @@ #include + +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("Allocating Page: %x (%d of %d)\n",start_page, 1, num_pages); int i = 1; while (i < num_pages) { void * tmp_page = Alloc_Page(); - SerialPrint("Allocating Page: %x (%d of %d)\n",tmp_page, i+1, num_pages); + //SerialPrint("Allocating Page: %x (%d of %d)\n",tmp_page, i+1, num_pages); if (tmp_page != start_page + (PAGE_SIZE * i)) { //we have to start over...; @@ -18,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("Allocating Page: %x (%d of %d)\n",start_page, 1, num_pages); i = 1; continue; }