diff options
| author | Matteo Gmür <matteo.gmuer1@ost.ch> | 2024-10-23 13:40:02 +0000 |
|---|---|---|
| committer | Matteo Gmür <matteo.gmuer1@ost.ch> | 2024-10-23 13:40:02 +0000 |
| commit | c373109b4912e857273c30b3ebd2d25296da85fe (patch) | |
| tree | 40490d3aee47b4370e149d32024b347bcc2408e9 | |
| parent | 61db7fa6097a9e3784f8fb18a8d3de47d7d7c007 (diff) | |
| download | teachos-c373109b4912e857273c30b3ebd2d25296da85fe.tar.xz teachos-c373109b4912e857273c30b3ebd2d25296da85fe.zip | |
Ensure page table is static
| -rw-r--r-- | arch/x86_64/src/memory/paging/page_mapper.cpp | 2 |
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 |
