Whoops, this is 5-level paging, not 6-level paging

This commit is contained in:
Erin 2023-07-26 12:41:18 +02:00 committed by ondra05
parent ab26de61f6
commit c55e3e82c9

View file

@ -64,7 +64,7 @@ impl Memory {
}; };
// Walk pagetable levels // Walk pagetable levels
for lvl in (lookup_depth..5).rev() { for lvl in (lookup_depth..4).rev() {
let entry = (*current_pt) let entry = (*current_pt)
.table .table
.get_unchecked_mut(addr_extract_index(target, lvl)); .get_unchecked_mut(addr_extract_index(target, lvl));