summaryrefslogtreecommitdiff
path: root/Kernel/Arch/i386/CPU.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-02-25 09:57:32 +0100
committerAndreas Kling <kling@serenityos.org>2021-02-25 09:57:32 +0100
commit8706ccfaddd30e7a069a257b95e6d07430421315 (patch)
tree011f55bfa18f0f2d15d4006aaa0f3fe7cfd24cad /Kernel/Arch/i386/CPU.cpp
parenta0f4e50bef8559e26894a5bc77e0136510fc8497 (diff)
downloadserenity-8706ccfaddd30e7a069a257b95e6d07430421315.zip
Kernel: Remove unused Processor::set_thread_specific()
Diffstat (limited to 'Kernel/Arch/i386/CPU.cpp')
-rw-r--r--Kernel/Arch/i386/CPU.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/Kernel/Arch/i386/CPU.cpp b/Kernel/Arch/i386/CPU.cpp
index 2a29ae5d83..6877932e0c 100644
--- a/Kernel/Arch/i386/CPU.cpp
+++ b/Kernel/Arch/i386/CPU.cpp
@@ -2238,13 +2238,6 @@ UNMAP_AFTER_INIT void Processor::gdt_init()
// clang-format on
}
-void Processor::set_thread_specific(u8* data, size_t len)
-{
- auto& descriptor = get_gdt_entry(GDT_SELECTOR_TLS);
- descriptor.set_base(data);
- descriptor.set_limit(len);
-}
-
void copy_kernel_registers_into_ptrace_registers(PtraceRegisters& ptrace_regs, const RegisterState& kernel_regs)
{
ptrace_regs.eax = kernel_regs.eax,