Kernel: Add initializer for Thread::m_tss

This commit is contained in:
Andreas Kling 2021-02-07 17:57:02 +01:00
parent 5c1c82cd33
commit fd3eca3acc
Notes: sideshowbarker 2024-07-18 22:32:11 +09:00
2 changed files with 1 additions and 2 deletions

View file

@ -77,7 +77,6 @@ Thread::Thread(NonnullRefPtr<Process> process)
set_default_signal_dispositions();
m_fpu_state = (FPUState*)kmalloc_aligned<16>(sizeof(FPUState));
reset_fpu_state();
memset(&m_tss, 0, sizeof(m_tss));
m_tss.iomapbase = sizeof(TSS32);
// Only IF is set when a process boots.

View file

@ -1238,7 +1238,7 @@ private:
mutable RecursiveSpinLock m_block_lock;
NonnullRefPtr<Process> m_process;
ThreadID m_tid { -1 };
TSS32 m_tss;
TSS32 m_tss {};
TrapFrame* m_current_trap { nullptr };
u32 m_saved_critical { 1 };
IntrusiveListNode m_ready_queue_node;