summaryrefslogtreecommitdiff
path: root/Kernel/Syscalls/thread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/Syscalls/thread.cpp')
-rw-r--r--Kernel/Syscalls/thread.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Kernel/Syscalls/thread.cpp b/Kernel/Syscalls/thread.cpp
index e15aa263bf..28a11cc172 100644
--- a/Kernel/Syscalls/thread.cpp
+++ b/Kernel/Syscalls/thread.cpp
@@ -81,7 +81,11 @@ KResultOr<FlatPtr> Process::sys$create_thread(void* (*entry)(void*), Userspace<c
ScopedSpinLock lock(g_scheduler_lock);
thread->set_priority(requested_thread_priority);
+#if ARCH(I386)
thread->set_state(Thread::State::Runnable);
+#else
+ dbgln("FIXME: Not starting thread {} (because it'd crash)", *thread);
+#endif
return thread->tid().value();
}