mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:48:12 +00:00
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:
parent
2a6e6c42d2
commit
cafccb866c
1 changed files with 4 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue