diff options
author | AMACB <amacburton@gmail.com> | 2021-11-05 20:20:11 -0500 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-11-06 11:54:28 +0100 |
commit | 60362ef401c21741573c15e327bc4f1d0b80bbcd (patch) | |
tree | ba9517d240b8d0ad2821ce41b03528a568b94368 /Kernel/Arch/x86/i386 | |
parent | b220b45c5e4da07b489e47c15635da6c0f35304f (diff) | |
download | serenity-60362ef401c21741573c15e327bc4f1d0b80bbcd.zip |
Kernel: Initialize regs.fs in Processor::init_context
Commit f285241c replaced the line that sets regs.fs with a line that
sets regs.gs, but not vice versa.
Diffstat (limited to 'Kernel/Arch/x86/i386')
-rw-r--r-- | Kernel/Arch/x86/i386/Processor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Arch/x86/i386/Processor.cpp b/Kernel/Arch/x86/i386/Processor.cpp index 71186f360b..90554edc42 100644 --- a/Kernel/Arch/x86/i386/Processor.cpp +++ b/Kernel/Arch/x86/i386/Processor.cpp @@ -172,7 +172,7 @@ FlatPtr Processor::init_context(Thread& thread, bool leave_crit) regs.cs = GDT_SELECTOR_CODE0; regs.ds = GDT_SELECTOR_DATA0; regs.es = GDT_SELECTOR_DATA0; - regs.gs = GDT_SELECTOR_DATA0; + regs.fs = GDT_SELECTOR_DATA0; regs.ss = GDT_SELECTOR_DATA0; regs.gs = GDT_SELECTOR_PROC; return stack_top; |