Virtualizing memory after exiting boot services

This commit is contained in:
Justin C. Miller
2018-03-22 19:16:44 -07:00
parent b5c579fe0d
commit cdef82f06f
6 changed files with 86 additions and 35 deletions

View File

@@ -1,5 +1,8 @@
__attribute__((section(".text.entry")))
void kernel_main() {
volatile int foo = 13;
return;
volatile register int foo = 0x1a1b1c10;
volatile register int bar = 0;
while(1)
foo = foo | 0xfffffff0 + bar++ | 0xf;
}