1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 06:47:35 +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:
Andreas Kling 2022-12-06 17:12:29 +01:00
parent b159bdd4fd
commit fba91a4307

View file

@ -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;
}