1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 12:17:44 +00:00

Kernel: Remove unused Processor::set_thread_specific()

This commit is contained in:
Andreas Kling 2021-02-25 09:57:32 +01:00
parent a0f4e50bef
commit 8706ccfadd
2 changed files with 0 additions and 9 deletions

View file

@ -2238,13 +2238,6 @@ UNMAP_AFTER_INIT void Processor::gdt_init()
// clang-format on // 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) void copy_kernel_registers_into_ptrace_registers(PtraceRegisters& ptrace_regs, const RegisterState& kernel_regs)
{ {
ptrace_regs.eax = kernel_regs.eax, ptrace_regs.eax = kernel_regs.eax,

View file

@ -1002,8 +1002,6 @@ public:
u32 init_context(Thread& thread, bool leave_crit); u32 init_context(Thread& thread, bool leave_crit);
static Vector<FlatPtr> capture_stack_trace(Thread& thread, size_t max_frames = 0); static Vector<FlatPtr> capture_stack_trace(Thread& thread, size_t max_frames = 0);
void set_thread_specific(u8* data, size_t len);
String platform_string() const; String platform_string() const;
}; };