mirror of
https://github.com/rdmsr/zag.git
synced 2026-11-01 15:48:21 +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();
|
mm.late_init();
|
||||||
ke.sched.late_init();
|
ke.sched.late_init();
|
||||||
|
|
||||||
const sp = mm.heap.alloc(r.kib(16)) catch @panic("oom");
|
if (boot_info.framebuffer != null) {
|
||||||
thread0.init(@intFromPtr(sp), r.kib(16), ex.fireworks.start, boot_info);
|
const sp = mm.heap.alloc(r.kib(16)) catch @panic("oom");
|
||||||
ke.sched.enqueue(&thread0);
|
thread0.init(@intFromPtr(sp), r.kib(16), ex.fireworks.start, boot_info);
|
||||||
|
ke.sched.enqueue(&thread0);
|
||||||
|
}
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
std.atomic.spinLoopHint();
|
std.atomic.spinLoopHint();
|
||||||
|
|||||||
Reference in New Issue
Block a user