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.
This commit is contained in:
Gunnar Beutner 2021-06-29 17:56:16 +02:00 committed by Andreas Kling
parent 2a6e6c42d2
commit cafccb866c
Notes: sideshowbarker 2024-07-18 11:12:37 +09:00

View file

@ -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();
}