summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-12-06 17:12:29 +0100
committerAndreas Kling <kling@serenityos.org>2022-12-07 13:18:48 +0100
commitfba91a43071b486e8eab3c1cd31d910332b5cf63 (patch)
tree3f714af13cc28abb5f7e7ecfcf8418968c8f8dae /Userland
parentb159bdd4fd0fe6ed38a02c733ff117e87d187e27 (diff)
downloadserenity-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.cpp1
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;
}