diff options
author | Andreas Kling <kling@serenityos.org> | 2020-07-02 21:30:18 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-07-02 21:50:42 +0200 |
commit | 47f5b24cc8a0d910925f330898ff832dc4663515 (patch) | |
tree | b98f868526fa69e429770c6ba3ea57da9db45f72 | |
parent | e7393bfb7b4cc8a256f94bf7f8333bb2d17ca4e0 (diff) | |
download | serenity-47f5b24cc8a0d910925f330898ff832dc4663515.zip |
Kernel: Remove no-longer-used GDT selector from Thread
Now that we use software context switching, each thread no longer has
its own GDT entry (yay!) so we can get rid of this Thread member. :^)
-rw-r--r-- | Kernel/Thread.h | 5 | ||||
-rw-r--r-- | Kernel/UnixTypes.h | 6 |
2 files changed, 0 insertions, 11 deletions
diff --git a/Kernel/Thread.h b/Kernel/Thread.h index 543717a123..4ad06d49fa 100644 --- a/Kernel/Thread.h +++ b/Kernel/Thread.h @@ -288,7 +288,6 @@ public: RegisterState& get_register_dump_from_stack(); - u16 selector() const { return m_far_ptr.selector; } TSS32& tss() { return m_tss; } const TSS32& tss() const { return m_tss; } State state() const { return m_state; } @@ -352,8 +351,6 @@ public: void set_should_die(); void die_if_needed(); - const FarPtr& far_ptr() const { return m_far_ptr; } - bool tick(); void set_ticks_left(u32 t) { m_ticks_left = t; } u32 ticks_left() const { return m_ticks_left; } @@ -361,7 +358,6 @@ public: u32 kernel_stack_base() const { return m_kernel_stack_base; } u32 kernel_stack_top() const { return m_kernel_stack_top; } - void set_selector(u16 s) { m_far_ptr.selector = s; } void set_state(State); bool is_initialized() const { return m_initialized; } @@ -475,7 +471,6 @@ private: Process& m_process; int m_tid { -1 }; TSS32 m_tss; - FarPtr m_far_ptr; Atomic<u32> m_cpu { 0 }; u32 m_cpu_affinity { THREAD_AFFINITY_DEFAULT }; u32 m_ticks { 0 }; diff --git a/Kernel/UnixTypes.h b/Kernel/UnixTypes.h index 7830cab91c..f01cf0aa53 100644 --- a/Kernel/UnixTypes.h +++ b/Kernel/UnixTypes.h @@ -534,12 +534,6 @@ struct utsname { char machine[UTSNAME_ENTRY_LEN]; }; -struct [[gnu::packed]] FarPtr -{ - u32 offset { 0 }; - u16 selector { 0 }; -}; - struct iovec { void* iov_base; size_t iov_len; |