diff options
author | Andreas Kling <kling@serenityos.org> | 2022-12-06 17:12:29 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-12-07 13:18:48 +0100 |
commit | fba91a43071b486e8eab3c1cd31d910332b5cf63 (patch) | |
tree | 3f714af13cc28abb5f7e7ecfcf8418968c8f8dae /Userland | |
parent | b159bdd4fd0fe6ed38a02c733ff117e87d187e27 (diff) | |
download | serenity-fba91a43071b486e8eab3c1cd31d910332b5cf63.zip |
UserspaceEmulator: Initialize the FS segment on startup
Set it to 0x23, matching the initial value in a native process.
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/DevTools/UserspaceEmulator/SoftCPU.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/DevTools/UserspaceEmulator/SoftCPU.cpp b/Userland/DevTools/UserspaceEmulator/SoftCPU.cpp index feb61031b6..acad23e837 100644 --- a/Userland/DevTools/UserspaceEmulator/SoftCPU.cpp +++ b/Userland/DevTools/UserspaceEmulator/SoftCPU.cpp @@ -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; } |