From f3dd2b2f5bd1b5dd4d4309a30db3c7733b8f63bb Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Wed, 3 Dec 2025 20:40:54 +0100 Subject: x86_64/memory: only deallocate allocated frames --- arch/x86_64/include/x86_64/memory/scoped_mapping.hpp | 1 + 1 file changed, 1 insertion(+) (limited to 'arch/x86_64/include') diff --git a/arch/x86_64/include/x86_64/memory/scoped_mapping.hpp b/arch/x86_64/include/x86_64/memory/scoped_mapping.hpp index dff54ec..99585bc 100644 --- a/arch/x86_64/include/x86_64/memory/scoped_mapping.hpp +++ b/arch/x86_64/include/x86_64/memory/scoped_mapping.hpp @@ -57,6 +57,7 @@ namespace teachos::memory::x86_64 page m_page; frame_allocator * m_allocator; bool m_mapped; + std::uint8_t m_allocated; }; } // namespace teachos::memory::x86_64 -- cgit v1.2.3