diff options
| author | Fabian Imhof <fabian.imhof@ost.ch> | 2024-11-05 09:54:48 +0000 |
|---|---|---|
| committer | Fabian Imhof <fabian.imhof@ost.ch> | 2024-11-05 09:54:48 +0000 |
| commit | 77b50aa74e404a7af4b17d05613b21c8e5cd6f49 (patch) | |
| tree | cbd1df6ce94b9ded16629e98ce10f20676c27922 /arch/x86_64 | |
| parent | c887e22cd7827ae53fd3eab6f5af41969cdd616c (diff) | |
| download | teachos-77b50aa74e404a7af4b17d05613b21c8e5cd6f49.tar.xz teachos-77b50aa74e404a7af4b17d05613b21c8e5cd6f49.zip | |
remove variable
Diffstat (limited to 'arch/x86_64')
| -rw-r--r-- | arch/x86_64/include/arch/memory/paging/kernel_mapper.hpp | 7 |
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(), |
