mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 17:40:27 +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
Notes:
sideshowbarker
2024-07-18 11:12:37 +09:00
Author: https://github.com/gunnarbeutner Commit: https://github.com/SerenityOS/serenity/commit/cafccb866c7 Pull-request: https://github.com/SerenityOS/serenity/pull/8333
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…
Reference in a new issue