build: fix UM build

This commit is contained in:
Loïc Grégoire
2026-04-24 14:49:25 -04:00
parent 43c6ffa04e
commit 29f5eb37ef
4 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -91,7 +91,7 @@ fn map_kernel(boot_info: *pl.BootInfo) void {
pub fn init(boot_info: *pl.BootInfo) linksection(r.init) void {
mi.phys.init(boot_info);
if (!@hasDecl(config, "CONFIG_ARCH_UM")) {
if (config.arch != .um) {
map_kernel(boot_info);
}
mi.kernel_pmap.activate();