aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorFabian Imhof <fabian.imhof@ost.ch>2024-11-05 09:54:48 +0000
committerFabian Imhof <fabian.imhof@ost.ch>2024-11-05 09:54:48 +0000
commit77b50aa74e404a7af4b17d05613b21c8e5cd6f49 (patch)
treecbd1df6ce94b9ded16629e98ce10f20676c27922 /arch
parentc887e22cd7827ae53fd3eab6f5af41969cdd616c (diff)
downloadteachos-77b50aa74e404a7af4b17d05613b21c8e5cd6f49.tar.xz
teachos-77b50aa74e404a7af4b17d05613b21c8e5cd6f49.zip
remove variable
Diffstat (limited to 'arch')
-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(),