Kernel/LibC: Replace SYS_{GET,SET}_TLS with SYS_{SET,GET}_{FS,GS}BASE

This allows userspace to use both registers
This commit is contained in:
2025-11-13 04:20:53 +02:00
parent 7a68ce7e94
commit 89c0ff1a9d
17 changed files with 165 additions and 46 deletions
+2 -1
View File
@@ -282,7 +282,8 @@ namespace Kernel
}
Processor::gdt().set_tss_stack(thread->kernel_stack_top());
Processor::load_tls();
if (thread->is_userspace())
Processor::load_segments();
*interrupt_stack = thread->interrupt_stack();
*interrupt_registers = thread->interrupt_registers();