diff options
| author | Fabian Imhof <fabian.imhof@ost.ch> | 2024-10-26 07:03:01 +0000 |
|---|---|---|
| committer | Fabian Imhof <fabian.imhof@ost.ch> | 2024-10-26 07:03:01 +0000 |
| commit | c2c7503fec31c07645fdc087dbf1ef487e90912e (patch) | |
| tree | 711ba04a5f61cfa698b25e7fcf72af5c66fb97bb /arch/x86_64/src/memory/paging | |
| parent | 4c97a4e1e2055ce63a0d16d1e5be880792a5e7eb (diff) | |
| download | teachos-c2c7503fec31c07645fdc087dbf1ef487e90912e.tar.xz teachos-c2c7503fec31c07645fdc087dbf1ef487e90912e.zip | |
fix mmap type, adjust linker, use std::array
Diffstat (limited to 'arch/x86_64/src/memory/paging')
| -rw-r--r-- | arch/x86_64/src/memory/paging/page_table.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/x86_64/src/memory/paging/page_table.cpp b/arch/x86_64/src/memory/paging/page_table.cpp index 21611e1..1d7b8a0 100644 --- a/arch/x86_64/src/memory/paging/page_table.cpp +++ b/arch/x86_64/src/memory/paging/page_table.cpp @@ -1,5 +1,7 @@ #include "arch/memory/paging/page_table.hpp" +#include <array> + namespace teachos::arch::memory::paging { /** @@ -44,8 +46,9 @@ namespace teachos::arch::memory::paging */ auto next_table_address(std::size_t table_index) -> std::optional<std::size_t>; - entry entries[PAGE_TABLE_ENTRY_COUNT]; ///< Entries containing addresses to page tables of a level below or - ///< actual virtual addresses for the level 1 page table. + std::array<entry, PAGE_TABLE_ENTRY_COUNT> + entries{}; ///< Entries containing addresses to page tables of a level below or + ///< actual virtual addresses for the level 1 page table. }; auto page_table::zero_entries() -> void |
