mirror of
https://github.com/rdmsr/zag.git
synced 2026-10-31 23:38:21 +00:00
all: use root boot info pointer
This commit is contained in:
+2
-3
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user