core: Fix a small error in thread.zig

This commit is contained in:
Gabriel 2025-02-17 23:04:43 +01:00
parent 9c92b3de4b
commit 13445bac1f

View File

@ -59,7 +59,7 @@ pub fn switchTask(regs: *interrupts.InterruptStackFrame, new_task: *ThreadContro
pub fn fetchNewTask(core: *cpu.arch.Core, should_idle_if_not_found: bool) ?*ThreadControlBlock { pub fn fetchNewTask(core: *cpu.arch.Core, should_idle_if_not_found: bool) ?*ThreadControlBlock {
const last = core.thread_list.last orelse { const last = core.thread_list.last orelse {
if (should_idle_if_not_found) { if (should_idle_if_not_found) {
return &core.idle_thread; return &core.idle_thread.data;
} else return null; } else return null;
}; };