Add logging framework

This commit is contained in:
Justin C. Miller
2018-04-28 19:18:53 -07:00
parent 358837ed69
commit b3e49590a7
10 changed files with 274 additions and 174 deletions

View File

@@ -1,6 +1,5 @@
#include "kutil/memory.h"
#include "assert.h"
#include "console.h"
#include "memory.h"
#include "memory_pages.h"
@@ -410,8 +409,6 @@ page_in_ident(
void
memory_initialize_managers(const void *memory_map, size_t map_length, size_t desc_length)
{
console *cons = console::get();
// The bootloader reserved 16 pages for page tables, which we'll use to bootstrap.
// The first one is the already-installed PML4, so grab it from CR3.
uint64_t cr3;
@@ -525,9 +522,6 @@ memory_initialize_managers(const void *memory_map, size_t map_length, size_t des
pm->page_in(pml4, cur->physical_address, cur->virtual_address, cur->count);
}
page_block::dump(used_head, "used", true);
page_block::dump(free_head, "free", true);
// Put our new PML4 into CR3 to start using it
page_manager::set_pml4(pml4);