mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 16:18:12 +00:00
Kernel: Don't add the colonel process' main thread to g_threads.
This was causing the colonel to get scheduled when he wasn't needed.
This commit is contained in:
parent
60d25f0f4a
commit
8501fdc6f5
1 changed files with 4 additions and 2 deletions
|
@ -59,8 +59,10 @@ Thread::Thread(Process& process)
|
|||
m_tss.ss2 = m_process.pid();
|
||||
m_far_ptr.offset = 0x98765432;
|
||||
|
||||
InterruptDisabler disabler;
|
||||
g_threads->prepend(this);
|
||||
if (m_process.pid() != 0) {
|
||||
InterruptDisabler disabler;
|
||||
g_threads->prepend(this);
|
||||
}
|
||||
}
|
||||
|
||||
Thread::~Thread()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue