aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64
diff options
context:
space:
mode:
authorMatteo Gmür <matteo.gmuer1@ost.ch>2024-10-26 11:24:13 +0000
committerMatteo Gmür <matteo.gmuer1@ost.ch>2024-10-26 11:24:13 +0000
commitbc993ccf7c5a80a8f4b1cd05437701efb81beec9 (patch)
tree5d5d90cdb6a93df3b7c624b4b616e07371b93f7d /arch/x86_64
parentffb6507d565585bb2a817ff01317b7643bd6d981 (diff)
downloadteachos-bc993ccf7c5a80a8f4b1cd05437701efb81beec9.tar.xz
teachos-bc993ccf7c5a80a8f4b1cd05437701efb81beec9.zip
Fix typo
Diffstat (limited to 'arch/x86_64')
-rw-r--r--arch/x86_64/src/memory/paging/page_table.cpp2
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));