[0] ERROR panicked at /home/rajas/.cargo/git/checkouts/x86_64-380b825b01a45fff/c845be9/src/structures/paging/mapper/mapped_page_table.rs:877:51:
entry should be mapped at this point
I'm not sure if there is something wrong with my code, but I don't think there is since this is a freshly zeroed L4 page table.
I am using the
nextbranch because I am using thePAT_4KIB_PAGEflag. Today I encountered a panic:I'm not sure if there is something wrong with my code, but I don't think there is since this is a freshly zeroed L4 page table.
This happens when I call
map_to. The full code is at https://github.com/ChocolateLoverRaj/rust-os-tutorial/blob/e0fb8f4e767acf8711e4ef22d56af939bd3cdfd2/kernel/src/syscall_handlers/spawn_process.rs#L142 (runcargo r -- --nographicto reproduce).