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

pull/2/head
ondra05 2023-07-26 12:41:18 +02:00
parent 51ccc502d0
commit b3d91fa398
No known key found for this signature in database
GPG Key ID: 0DA6D2BB2285E881
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));