diff options
| author | Fabian Imhof <fabian.imhof@ost.ch> | 2024-10-15 09:02:52 +0000 |
|---|---|---|
| committer | Fabian Imhof <fabian.imhof@ost.ch> | 2024-10-15 09:02:52 +0000 |
| commit | 0fac2d5f7a868b5d65db6fb42ce256485e651206 (patch) | |
| tree | 083d9ad9f53f9c9fa2d719870d03c82a7e2cdade /arch | |
| parent | 1d533cc10d926dde641af05537b540427c27bf64 (diff) | |
| download | teachos-0fac2d5f7a868b5d65db6fb42ce256485e651206.tar.xz teachos-0fac2d5f7a868b5d65db6fb42ce256485e651206.zip | |
replace standalone value with enum
Diffstat (limited to 'arch')
| -rw-r--r-- | arch/x86_64/src/memory/paging.cpp | 2 |
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); |
