Skip to content

Commit 60362ef

Browse files
AMACBawesomekling
authored andcommitted
Kernel: Initialize regs.fs in Processor::init_context
Commit f285241 replaced the line that sets regs.fs with a line that sets regs.gs, but not vice versa.
1 parent b220b45 commit 60362ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Kernel/Arch/x86/i386/Processor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ FlatPtr Processor::init_context(Thread& thread, bool leave_crit)
172172
regs.cs = GDT_SELECTOR_CODE0;
173173
regs.ds = GDT_SELECTOR_DATA0;
174174
regs.es = GDT_SELECTOR_DATA0;
175-
regs.gs = GDT_SELECTOR_DATA0;
175+
regs.fs = GDT_SELECTOR_DATA0;
176176
regs.ss = GDT_SELECTOR_DATA0;
177177
regs.gs = GDT_SELECTOR_PROC;
178178
return stack_top;

0 commit comments

Comments
 (0)