aboutsummaryrefslogtreecommitdiffstats
path: root/memory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'memory.cpp')
-rw-r--r--memory.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/memory.cpp b/memory.cpp
index 59e2bbe..710701d 100644
--- a/memory.cpp
+++ b/memory.cpp
@@ -8,7 +8,7 @@ struct PageDirectory
static constexpr std::uint32_t NotPresent = 0x2;
PageDirectory(): value(NotPresent) {}
- PageDirectory(void *addr): value(reinterpret_cast<std::uint32_t>(addr) | 3) {}
+ PageDirectory(void *addr): value(reinterpret_cast<std::uint32_t>(addr) | 7) {}
std::uint32_t value;
};
@@ -39,7 +39,7 @@ void memory_initialize()
std::uint32_t addr = 0;
for (auto& p : pageTable) {
- p = addr | 3; // supervisor, r/w, present
+ p = addr | 7; // supervisor, r/w, present
addr += 0x1000;
}