aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arch/x86_64/include/arch/memory/paging/kernel_mapper.hpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/arch/x86_64/include/arch/memory/paging/kernel_mapper.hpp b/arch/x86_64/include/arch/memory/paging/kernel_mapper.hpp
index 05a1cf2..23a18dd 100644
--- a/arch/x86_64/include/arch/memory/paging/kernel_mapper.hpp
+++ b/arch/x86_64/include/arch/memory/paging/kernel_mapper.hpp
@@ -7,11 +7,6 @@
namespace teachos::arch::memory::paging
{
- namespace
- {
- virtual_page constexpr UNUSED_VIRTUAL_PAGE(0xCAFEBABE);
- } // namespace
-
/**
* @brief Kernel mapper that allows to remap the kernel elf sections in C++.
*
@@ -43,7 +38,7 @@ namespace teachos::arch::memory::paging
*/
auto remap_kernel() -> void
{
- temporary_page temporary_page{UNUSED_VIRTUAL_PAGE, allocator};
+ temporary_page temporary_page{virtual_page{0xCAFEBABE}, allocator};
auto & active_table = active_page_table::create_or_get();
auto const frame = allocator.allocate_frame();
exception_handling::assert(frame.has_value(),