X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=misc%2Ftest_vm%2Fsrc%2Fgeekos%2Fmain.c;h=9d48319fc7da03c54dd5651d765372bd66bcce8f;hb=5e83847991f155d6aabffc2b71f5a9224a5fbd59;hp=80283a4dd1350030f1034607588ca5bf9e769509;hpb=0893919c04fa1186a70039b739a6dcec0a2189ba;p=palacios.git diff --git a/misc/test_vm/src/geekos/main.c b/misc/test_vm/src/geekos/main.c index 80283a4..9d48319 100644 --- a/misc/test_vm/src/geekos/main.c +++ b/misc/test_vm/src/geekos/main.c @@ -3,7 +3,7 @@ * Copyright (c) 2001,2003,2004 David H. Hovemeyer * Copyright (c) 2003, Jeffrey K. Hollingsworth * Copyright (c) 2004, Iulian Neamtiu - * $Revision: 1.1 $ + * $Revision: 1.2 $ * * This is free software. You are permitted to use, * redistribute, and modify it as specified in the file "COPYING". @@ -53,6 +53,10 @@ extern uint_t Get_ESP(); extern uint_t Get_EBP(); + +extern void Invalidate_PG(void * addr); + + int foo=42; #define SPEAKER_PORT 0x61 @@ -247,7 +251,7 @@ void Main(struct Boot_Info* bootInfo) Init_Interrupts(); Init_Scheduler(); Init_Traps(); - Init_Timer(); + // Init_Timer(); Init_Keyboard(); Init_VM(bootInfo); Init_Paging(); @@ -282,6 +286,20 @@ void Main(struct Boot_Info* bootInfo) SerialPrintLevel(1000,"Next: setup GDT\n"); + { + int i = 0; + for (i = 0; i < 1024; i++) { + uint_t * addr = (uint_t *)0xa00000; + uint_t foo = *addr; + + SerialPrint("Read From 0x%x=%d\n", (uint_t)addr, foo); + } + + } + // Invalidate_PG((void *)0x2000); + + // VM_Test(bootInfo, 32); + //VM_Test(bootInfo, 1536); while(1);