X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=test%2Fgeekos_test_vm%2Fsrc%2Fgeekos%2Fmain.c;h=cc1f7228c1bf3abae4de5bea8529a87e0e5b7f09;hp=177771abef05c80d2ae21b23f3b65c949c5b28fa;hb=ed8feff1d5dd6bf028cd5ba0960ec125505d7597;hpb=1cd2958b5eb63b2ac63ced17447ba3b45c43f51a diff --git a/test/geekos_test_vm/src/geekos/main.c b/test/geekos_test_vm/src/geekos/main.c index 177771a..cc1f722 100644 --- a/test/geekos_test_vm/src/geekos/main.c +++ b/test/geekos_test_vm/src/geekos/main.c @@ -291,8 +291,39 @@ void Main(struct Boot_Info* bootInfo) PrintBoth("Next: setup GDT\n"); + { + uint_t addr = 0xe0000; + uint_t hi = 0; + + + + // wrmsr(SYMBIOTIC_MSR, hi, addr); + { + uint_t msr_num = 0x0000001B; + __asm__ __volatile__ ("rdmsr" : : "c"(msr_num) : "%eax","%edx","memory"); + } + { + uint_t msr_num = 0x0000001c; + __asm__ __volatile__ ("rdmsr" : : "c"(msr_num) : "%eax","%edx","memory"); + } + + + { + uint_t msr_num = 0x0000001B; + __asm__ __volatile__ ("wrmsr" : : "c"(msr_num), "a"(hi), "d"(addr) : "memory"); + } + + { + uint_t msr_num = 0x535; + __asm__ __volatile__ ("wrmsr" : : "c"(msr_num), "a"(hi), "d"(addr) : "memory"); + } + + + while (1) {} + + } if (TEST_PAGING) { int i = 0; for (i = 0; i < 1024; i++) {