aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/memory
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2025-12-02 19:39:03 +0100
committerFelix Morgner <felix.morgner@ost.ch>2025-12-02 19:39:03 +0100
commit9331afdcbbe95bc1bd79d657f0d7c5b91a19a375 (patch)
tree09053882abb3b2dddfa7883931f43405f544407b /arch/x86_64/src/memory
parent148c54a3d470c6019ebebe1387a7d889a2b8808e (diff)
downloadteachos-9331afdcbbe95bc1bd79d657f0d7c5b91a19a375.tar.xz
teachos-9331afdcbbe95bc1bd79d657f0d7c5b91a19a375.zip
x86_64/memory: fix temporary page unmapping
Diffstat (limited to 'arch/x86_64/src/memory')
-rw-r--r--arch/x86_64/src/memory/scoped_mapping.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86_64/src/memory/scoped_mapping.cpp b/arch/x86_64/src/memory/scoped_mapping.cpp
index 602198e..191a7ad 100644
--- a/arch/x86_64/src/memory/scoped_mapping.cpp
+++ b/arch/x86_64/src/memory/scoped_mapping.cpp
@@ -89,6 +89,8 @@ namespace teachos::memory::x86_64
auto pml1_index = pml_index<1>(m_page);
(*pml1)[pml1_index].frame(frame, page_table::entry::flags::present | flags);
+ m_mapped = true;
+
return static_cast<std::byte *>(frame.start_address());
}