Skip to main content

create_zeroed_pdpts

Function create_zeroed_pdpts 

Source
fn create_zeroed_pdpts(pmm: &mut Pmm, page_ptr: VirtAddr)
Expand description

Prepopulate the higher half with empty PDPTs so that if the kernel PML4 higher half ever gets cloned (like when creating processes), no stale higher halfs exist that aren’t synced with the kernel’s (which could cause page faults when switching into the kernel with user pages)

TODO: only create a zeroed pdpt for areas where we actually need them