aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86_64/src')
-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));