[boot] Log address of new table pages

Since it's often needed when debugging between the bootloader and
kernel, log the address of the table pages the bootloader allocated.
This commit is contained in:
Justin C. Miller
2021-01-18 13:36:05 -08:00
parent c3cb41f78a
commit 89391e5be1

View File

@@ -215,6 +215,8 @@ allocate_tables(kernel::args::header *args, uefi::boot_services *bs)
args->table_count = tables_needed - 1;
args->page_tables = offset_ptr<void>(addr, page_size);
console::print(L" First page (pml4) at: 0x%lx\r\n", pml4);
add_kernel_pds(pml4, args->page_tables, args->table_count);
add_offset_mappings(pml4, args->page_tables, args->table_count);