diff options
| author | Matteo Gmür <matteo.gmuer1@ost.ch> | 2024-10-26 11:24:13 +0000 |
|---|---|---|
| committer | Matteo Gmür <matteo.gmuer1@ost.ch> | 2024-10-26 11:24:13 +0000 |
| commit | bc993ccf7c5a80a8f4b1cd05437701efb81beec9 (patch) | |
| tree | 5d5d90cdb6a93df3b7c624b4b616e07371b93f7d | |
| parent | ffb6507d565585bb2a817ff01317b7643bd6d981 (diff) | |
| download | teachos-bc993ccf7c5a80a8f4b1cd05437701efb81beec9.tar.xz teachos-bc993ccf7c5a80a8f4b1cd05437701efb81beec9.zip | |
Fix typo
| -rw-r--r-- | arch/x86_64/src/memory/paging/page_table.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86_64/src/memory/paging/page_table.cpp b/arch/x86_64/src/memory/paging/page_table.cpp index 935dd8c..38d5025 100644 --- a/arch/x86_64/src/memory/paging/page_table.cpp +++ b/arch/x86_64/src/memory/paging/page_table.cpp @@ -113,7 +113,7 @@ namespace teachos::arch::memory::paging { size_t offset = sizeof(page_table) * n; std::construct_at(reinterpret_cast<page_table *>(&_end_of_image + offset)); - for (size_t m = 0; m < PAGE_TABLE_ENTRY_COUNT; ++m) + for (size_t m = 1; m <= PAGE_TABLE_ENTRY_COUNT; ++m) { size_t offset = sizeof(page_table) * (n + m); std::construct_at(reinterpret_cast<page_table *>(&_end_of_image + offset)); |
