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

soft-float
Erin 2023-07-26 12:41:18 +02:00
parent 1ed153a9a2
commit 2480a65947
1 changed files with 1 additions and 1 deletions

View File

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