11#if MOS_PLATFORM_PAGING_LEVELS < 5
26 return pml5.next.table;
37 return (pml4_t){ .table = (
pml4e_t *) pml5e };
40#error "Implement PML5 support"
bool callback(pb_istream_t *stream, uint8_t *buf, size_t count)
void pml4_traverse(pml4_t pml4, ptr_t *vaddr, size_t *n_pages, pagetable_walk_options_t callback, void *data)
__nodiscard bool pml4_destroy_range(pml4_t pml4, ptr_t *vaddr, size_t *n_pages)
pml5e_t * pml5_entry(pml5_t pml5, ptr_t vaddr)
bool pml5e_is_present(const pml5e_t *pml5e)
pml4_t pml5e_get_or_create_pml4(pml5e_t *pml5e)
void pml5_traverse(pml5_t pml5, ptr_t *vaddr, size_t *n_pages, pagetable_walk_options_t callback, void *data)
bool pml5_destroy_range(pml5_t pml5, ptr_t *vaddr, size_t *n_pages)