os::printc('\n');
}
-extern "C" os::paging::PML4T PML4T;
extern "C" void os::syscall_print_low_mmap() {
- os::paging::on_all_pages(PML4T, [](os::paging::page* vaddr, os::phys_ptr<os::paging::page> paddr, std::size_t page_size_in_bytes) {
+ os::paging::on_all_pages(*get_process(current_pid).PML4T,
+ [](os::paging::page* vaddr, os::phys_ptr<os::paging::page> paddr, std::size_t page_size_in_bytes) {
if (std::size_t(vaddr) < 128ul * 1024 * 1024 * 1024 * 1024) { // Lower half:
if (std::size_t(vaddr) < 0x10'0000'0000) {
os::print("segments:");