mirror of
https://github.com/rdmsr/zag.git
synced 2026-10-29 14:38:21 +00:00
loader: map pfndb and cleanup
This commit is contained in:
+3
-5
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user