mirror of
https://github.com/rdmsr/zag.git
synced 2026-10-27 13:58:20 +00:00
fix(ex): don't start fireworks if no fb
This commit is contained in:
+5
-3
@@ -15,9 +15,11 @@ pub fn init(boot_info: *pl.BootInfo) void {
|
||||
mm.late_init();
|
||||
ke.sched.late_init();
|
||||
|
||||
const sp = mm.heap.alloc(r.kib(16)) catch @panic("oom");
|
||||
thread0.init(@intFromPtr(sp), r.kib(16), ex.fireworks.start, boot_info);
|
||||
ke.sched.enqueue(&thread0);
|
||||
if (boot_info.framebuffer != null) {
|
||||
const sp = mm.heap.alloc(r.kib(16)) catch @panic("oom");
|
||||
thread0.init(@intFromPtr(sp), r.kib(16), ex.fireworks.start, boot_info);
|
||||
ke.sched.enqueue(&thread0);
|
||||
}
|
||||
|
||||
while (true) {
|
||||
std.atomic.spinLoopHint();
|
||||
|
||||
Reference in New Issue
Block a user