aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src
diff options
context:
space:
mode:
authorMatteo Gmür <matteo.gmuer1@ost.ch>2024-10-23 13:40:02 +0000
committerMatteo Gmür <matteo.gmuer1@ost.ch>2024-10-23 13:40:02 +0000
commitc373109b4912e857273c30b3ebd2d25296da85fe (patch)
tree40490d3aee47b4370e149d32024b347bcc2408e9 /arch/x86_64/src
parent61db7fa6097a9e3784f8fb18a8d3de47d7d7c007 (diff)
downloadteachos-c373109b4912e857273c30b3ebd2d25296da85fe.tar.xz
teachos-c373109b4912e857273c30b3ebd2d25296da85fe.zip
Ensure page table is static
Diffstat (limited to 'arch/x86_64/src')
-rw-r--r--arch/x86_64/src/memory/paging/page_mapper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86_64/src/memory/paging/page_mapper.cpp b/arch/x86_64/src/memory/paging/page_mapper.cpp
index b89b637..995f2c3 100644
--- a/arch/x86_64/src/memory/paging/page_mapper.cpp
+++ b/arch/x86_64/src/memory/paging/page_mapper.cpp
@@ -6,7 +6,7 @@ namespace teachos::arch::memory::paging
{
namespace
{
- page_table * PAGE_TABLE_LEVEL_4_ADDRESS = boot::page_map_level_4;
+ static page_table * PAGE_TABLE_LEVEL_4_ADDRESS = boot::page_map_level_4;
} // namespace
auto create_or_get() -> page_table_handle