From f3786fefbccf1b277c97e1619b2314de6e438b10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Gr=C3=A9goire?= Date: Sat, 18 Apr 2026 20:58:27 -0400 Subject: [PATCH] fix(ex): don't start fireworks if no fb --- src/ex/init.zig | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/ex/init.zig b/src/ex/init.zig index 59ea5f8..edbc2b6 100644 --- a/src/ex/init.zig +++ b/src/ex/init.zig @@ -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();