Skip to content

Commit

Permalink
printing more paging info
Browse files Browse the repository at this point in the history
  • Loading branch information
Paweł Łukasik committed Oct 7, 2024
1 parent 5a6ad98 commit d73f0a0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/impl/kernel/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,13 @@ ASMCALL void kernel_main(boot_info* boot_info, void* l4_page_table) {
Framebuffer::get_instance()->Clear(255,0,0);
}
else if (memcmp(cmd, paging_cmd, sizeof(paging_cmd))) {
klog("Paging struct at address: %x", vmm.GetPageTableL3());
auto *pageTableL3 = reinterpret_cast<int *>(vmm.GetPageTableL3());
klog("Paging struct at address: %x\n", pageTableL3);
for (int i = 0; i < 1024; i++) {
if (*(pageTableL3 + i) != 0x0) {
klog("Page table entry for index %d: %x\n", i, *(pageTableL3 + i));
}
}
}
else if (memcmp(cmd, pci_cmd, sizeof(pci_cmd))) {
const auto devices = pci::enumerate();
Expand Down

0 comments on commit d73f0a0

Please sign in to comment.