fix(ex): don't start fireworks if no fb

This commit is contained in:
Loïc Grégoire
2026-04-18 20:58:27 -04:00
parent 1d747029c4
commit f3786fefbc
+5 -3
View File
@@ -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();