From 611b3c2c490f99e5513d32e0f974f242a731bba9 Mon Sep 17 00:00:00 2001 From: Hendiadyoin1 Date: Tue, 16 Mar 2021 21:19:15 +0100 Subject: [PATCH] Kernel: Make TSS use in thread generic This way it won't be architecture dependent --- Kernel/Thread.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Kernel/Thread.h b/Kernel/Thread.h index 20cfbf83b2..bbbbb54650 100644 --- a/Kernel/Thread.h +++ b/Kernel/Thread.h @@ -763,8 +763,8 @@ public: RegisterState& get_register_dump_from_stack(); const RegisterState& get_register_dump_from_stack() const { return const_cast(this)->get_register_dump_from_stack(); } - TSS32& tss() { return m_tss; } - const TSS32& tss() const { return m_tss; } + TSS& tss() { return m_tss; } + const TSS& tss() const { return m_tss; } State state() const { return m_state; } const char* state_string() const; @@ -1199,7 +1199,7 @@ private: mutable RecursiveSpinLock m_block_lock; NonnullRefPtr m_process; ThreadID m_tid { -1 }; - TSS32 m_tss {}; + TSS m_tss {}; TrapFrame* m_current_trap { nullptr }; u32 m_saved_critical { 1 }; IntrusiveListNode m_ready_queue_node;