forked from AbleOS/holey-bytes
Whoops, this is 5-level paging, not 6-level paging
This commit is contained in:
parent
ab26de61f6
commit
c55e3e82c9
|
@ -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));
|
||||||
|
|
Loading…
Reference in a new issue