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

This commit is contained in:
Erin 2023-07-26 12:41:18 +02:00
parent 1ed153a9a2
commit 2480a65947

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));