From cafccb866c7606014d82ee5fc18d4569b51044ce Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Tue, 29 Jun 2021 17:56:16 +0200 Subject: [PATCH] Kernel: Don't start usermode threads on x86_64 for now Starting usermode threads doesn't currently work on x86_64. With this stubbed out we can get text mode to boot though. --- Kernel/Syscalls/thread.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Kernel/Syscalls/thread.cpp b/Kernel/Syscalls/thread.cpp index e15aa263bf2..28a11cc1726 100644 --- a/Kernel/Syscalls/thread.cpp +++ b/Kernel/Syscalls/thread.cpp @@ -81,7 +81,11 @@ KResultOr Process::sys$create_thread(void* (*entry)(void*), Userspaceset_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(); }