From 07cc9764670ab351915dc49097e87af24d6db7f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Gr=C3=A9goire?= Date: Sat, 2 May 2026 12:14:18 -0400 Subject: [PATCH] fix(ke): pin initial thread --- src/kern/init.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/src/kern/init.zig b/src/kern/init.zig index f421a01..d6c734a 100644 --- a/src/kern/init.zig +++ b/src/kern/init.zig @@ -18,6 +18,7 @@ pub fn init(boot_info: *pl.BootInfo) linksection(r.init) void { thread0.init(@intFromPtr(&stack), r.kib(16), ki.sched.idle, null); thread0.priority = 0; thread0.priority_class = .Idle; + thread0.pinned = true; ki.sched.percpu.local().current_thread = &thread0;