loader: map pfndb and cleanup

This commit is contained in:
Loïc Grégoire
2026-07-18 14:06:36 -04:00
parent 3c72101228
commit 96d2bee857
12 changed files with 159 additions and 187 deletions
+3 -5
View File
@@ -1,3 +1,6 @@
//! Generic page map manipulation code.
//! Part of the code is duplicated from the kernel :(
const r = @import("root");
const mem = r.mem;
@@ -167,11 +170,6 @@ pub const PMap = struct {
}
}
pub fn walk_down_resolve(self: *Cursor, target_level: usize) bool {
self.walk_down(target_level, false, false) catch return false;
return true;
}
/// Choose the largest page size that satisfies the alignment and
/// size constraints of the current VA, PA, and remaining byte count.
/// Tries large pages first; falls back to 4K.