mirror of
https://github.com/rdmsr/zag.git
synced 2026-10-31 23:38:21 +00:00
feat(mm/zone): various additions
This commit is contained in:
@@ -100,7 +100,7 @@ pub fn RadixPmap(comptime Impl: type) type {
|
||||
|
||||
if (!pte.present) return null;
|
||||
|
||||
if (level == 0 or leaf_level_enabled(level)) {
|
||||
if (level == 0 or (leaf_level_enabled(level) and pte.huge_page)) {
|
||||
return pte.address() + (va & (page_size(level) - 1));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user