aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/x86_64/src/memory/paging.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86_64/src/memory/paging.cpp b/arch/x86_64/src/memory/paging.cpp
index 6fef339..4603e74 100644
--- a/arch/x86_64/src/memory/paging.cpp
+++ b/arch/x86_64/src/memory/paging.cpp
@@ -10,7 +10,7 @@ namespace teachos::arch::memory
auto entry::calculate_pointed_to_frame() const -> std::optional<physical_frame>
{
- if (contains_flags(1))
+ if (contains_flags(PRESENT))
{
auto physical_address = calculate_physical_address();
return physical_frame::containing_address(physical_address);