fix/kernel: Fixed amd64 paging API
This commit is contained in:
parent
a32db51e45
commit
d9eea99f36
1 changed files with 8 additions and 0 deletions
|
@ -78,6 +78,14 @@ void emk_entry(void)
|
||||||
log_early("Allocated 1 physical page: %llx", (uint64_t)a);
|
log_early("Allocated 1 physical page: %llx", (uint64_t)a);
|
||||||
pfree(a, 1);
|
pfree(a, 1);
|
||||||
|
|
||||||
|
/* Setup virtual memory */
|
||||||
|
if (!kernel_address_request.response)
|
||||||
|
{
|
||||||
|
kpanic(NULL, "Failed to get kernel address request");
|
||||||
|
}
|
||||||
|
|
||||||
|
kvirt = kernel_address_request.response->virtual_base;
|
||||||
|
kphys = kernel_address_request.response->physical_base;
|
||||||
paging_init();
|
paging_init();
|
||||||
log_early("Initialized paging");
|
log_early("Initialized paging");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue