mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-06 17:48:37 +00:00
UserspaceEmulator: Initialize the FS segment on startup
Set it to 0x23, matching the initial value in a native process.
This commit is contained in:
parent
b159bdd4fd
commit
fba91a4307
Notes:
sideshowbarker
2024-07-17 07:14:09 +09:00
Author: https://github.com/awesomekling
Commit: fba91a4307
Pull-request: https://github.com/SerenityOS/serenity/pull/16340
1 changed files with 1 additions and 0 deletions
|
@ -117,6 +117,7 @@ SoftCPU::SoftCPU(Emulator& emulator)
|
|||
m_segment[(int)X86::SegmentRegister::DS] = 0x23;
|
||||
m_segment[(int)X86::SegmentRegister::ES] = 0x23;
|
||||
m_segment[(int)X86::SegmentRegister::SS] = 0x23;
|
||||
m_segment[(int)X86::SegmentRegister::FS] = 0x23;
|
||||
m_segment[(int)X86::SegmentRegister::GS] = 0x2b;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue