summaryrefslogtreecommitdiff
path: root/Kernel/Arch/x86/i386
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/Arch/x86/i386')
-rw-r--r--Kernel/Arch/x86/i386/InterruptEntry.cpp2
-rw-r--r--Kernel/Arch/x86/i386/Processor.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Arch/x86/i386/InterruptEntry.cpp b/Kernel/Arch/x86/i386/InterruptEntry.cpp
index 0df2fd6533..156d0f71ad 100644
--- a/Kernel/Arch/x86/i386/InterruptEntry.cpp
+++ b/Kernel/Arch/x86/i386/InterruptEntry.cpp
@@ -21,7 +21,7 @@ asm(
" mov %ax, %ds\n"
" mov %ax, %es\n"
" mov $" __STRINGIFY(GDT_SELECTOR_PROC) ", %ax\n"
- " mov %ax, %fs\n"
+ " mov %ax, %gs\n"
" pushl %esp \n" // set TrapFrame::regs
" subl $" __STRINGIFY(TRAP_FRAME_SIZE - 4) ", %esp \n"
" movl %esp, %ebx \n" // save pointer to TrapFrame
diff --git a/Kernel/Arch/x86/i386/Processor.cpp b/Kernel/Arch/x86/i386/Processor.cpp
index d69911d867..f167edac6a 100644
--- a/Kernel/Arch/x86/i386/Processor.cpp
+++ b/Kernel/Arch/x86/i386/Processor.cpp
@@ -174,7 +174,7 @@ FlatPtr Processor::init_context(Thread& thread, bool leave_crit)
regs.es = GDT_SELECTOR_DATA0;
regs.gs = GDT_SELECTOR_DATA0;
regs.ss = GDT_SELECTOR_DATA0;
- regs.fs = GDT_SELECTOR_PROC;
+ regs.gs = GDT_SELECTOR_PROC;
return stack_top;
}