fix(mm): export phys

This commit is contained in:
Loïc Grégoire
2026-04-11 15:20:15 -04:00
parent d378760f66
commit 138031690d
+2 -1
View File
@@ -7,6 +7,7 @@ pub const page_size = 4096;
pub const init = private.init.init;
pub const vmem = private.vmem;
pub const phys = private.phys;
// 16 TB of maximum physical memory.
// This should be fine on consumer hardware for at least a decade :^)
@@ -29,7 +30,7 @@ pub const MapFlags = packed struct {
cache_disable: bool = false,
};
pub const Error = error{OutOfMemory, InvalidAddress, InvalidSize};
pub const Error = error{ OutOfMemory, InvalidAddress, InvalidSize };
pub inline fn page_to_pfn(addr: usize) Pfn {
return @intCast(addr >> 12);