mirror of
https://github.com/rdmsr/zag.git
synced 2026-11-01 23:58:21 +00:00
refactor: rework init
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
const std = @import("std");
|
||||
const b = @import("base");
|
||||
const pl = b.pl;
|
||||
const ke = b.ke;
|
||||
|
||||
pub fn init(boot_info: *pl.BootInfo) void {
|
||||
_ = boot_info;
|
||||
|
||||
pl.late_init();
|
||||
ke.sched.late_init();
|
||||
|
||||
while (true) {
|
||||
std.atomic.spinLoopHint();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
pub const init_mod = @import("init.zig");
|
||||
|
||||
pub const init = init_mod.init;
|
||||
@@ -1 +1,2 @@
|
||||
pub const fireworks = @import("fireworks.zig");
|
||||
pub const private = @import("private.zig");
|
||||
|
||||
Reference in New Issue
Block a user