summaryrefslogtreecommitdiff
path: root/Kernel/Syscalls/thread.cpp
diff options
context:
space:
mode:
authorGunnar Beutner <gbeutner@serenityos.org>2021-06-29 17:56:16 +0200
committerAndreas Kling <kling@serenityos.org>2021-06-30 15:13:30 +0200
commitcafccb866c7606014d82ee5fc18d4569b51044ce (patch)
tree1e3129ab8e119f4767559861d6e0b2da833a2a9c /Kernel/Syscalls/thread.cpp
parent2a6e6c42d2e82127c92016e73f36e1acb75ce7fd (diff)
downloadserenity-cafccb866c7606014d82ee5fc18d4569b51044ce.zip
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.
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();
}