Implement first-pass simple virtual memory manager

This commit is contained in:
Justin C. Miller
2018-04-28 02:17:17 -07:00
parent 2a353830c2
commit 358837ed69
4 changed files with 86 additions and 5 deletions

View File

@@ -54,6 +54,10 @@ kernel_main(popcorn_data *header)
header->memory_map_length,
header->memory_map_desc_size);
size_t n = 5000;
void *p = kalloc(n);
g_console.printf("kalloc'd %d bytes at %lx\n", n, p);
interrupts_init();
interrupts_enable();