mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 08:27:35 +00:00
Kernel: Tighten some typing in Arch/i386/CPU.h
Use more appropriate types for some things.
This commit is contained in:
parent
8706ccfadd
commit
53c6c29158
3 changed files with 49 additions and 47 deletions
|
@ -576,7 +576,7 @@ void* Process::sys$allocate_tls(size_t size)
|
|||
return (void*)-EFAULT;
|
||||
|
||||
auto& tls_descriptor = Processor::current().get_gdt_entry(GDT_SELECTOR_TLS);
|
||||
tls_descriptor.set_base(main_thread->thread_specific_data().as_ptr());
|
||||
tls_descriptor.set_base(main_thread->thread_specific_data());
|
||||
tls_descriptor.set_limit(main_thread->thread_specific_region_size());
|
||||
|
||||
return m_master_tls_region.unsafe_ptr()->vaddr().as_ptr();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue