From 13445bac1f88ef727561967ddc6c7541313ec670 Mon Sep 17 00:00:00 2001 From: Gabriel Date: Mon, 17 Feb 2025 23:04:43 +0100 Subject: [PATCH] core: Fix a small error in thread.zig --- core/src/thread.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/thread.zig b/core/src/thread.zig index 10b4862..7632eca 100644 --- a/core/src/thread.zig +++ b/core/src/thread.zig @@ -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 { const last = core.thread_list.last orelse { if (should_idle_if_not_found) { - return &core.idle_thread; + return &core.idle_thread.data; } else return null; };