all: use root boot info pointer

This commit is contained in:
Loïc Grégoire
2026-07-18 14:41:30 -04:00
parent 072239dc32
commit 301946c774
8 changed files with 31 additions and 26 deletions
+2 -3
View File
@@ -11,12 +11,11 @@ var stack: [r.kib(16)]u8 align(16) = undefined;
pub fn init(boot_info: *r.BootInfo) linksection(r.init) void {
r.boot_info = boot_info;
ke.ncpus = 1;
ki.impl.early_init();
ki.tunable.init(boot_info);
ki.tunable.init();
std.log.info("Welcome to the machine", .{});
pl.early_init(boot_info);
pl.early_init();
ki.log.init();
ki.cpu.init_cpu(0);
ki.turnstile.init_turnstiles();
+2 -2
View File
@@ -42,8 +42,8 @@ pub fn Tunable(comptime T: type, comptime default: T, comptime name: []const u8)
};
}
pub fn init(boot_info: *r.BootInfo) void {
const cmdline = boot_info.cmdline orelse return;
pub fn init() void {
const cmdline = r.boot_info.cmdline orelse return;
const elems = set.elems();