Skip to content

Commit

Permalink
Kernel: Don't start usermode threads on x86_64 for now
Browse files Browse the repository at this point in the history
Starting usermode threads doesn't currently work on x86_64. With this
stubbed out we can get text mode to boot though.
  • Loading branch information
gunnarbeutner authored and awesomekling committed Jun 30, 2021
1 parent 2a6e6c4 commit cafccb8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Kernel/Syscalls/thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit cafccb8

Please sign in to comment.