diff options
| author | Matteo Gmür <matteo.gmuer1@ost.ch> | 2024-10-28 12:45:46 +0000 |
|---|---|---|
| committer | Matteo Gmür <matteo.gmuer1@ost.ch> | 2024-10-28 12:45:46 +0000 |
| commit | efcb913196ccf0386a557e8c1053c430e5896179 (patch) | |
| tree | 3c5eaab7b093cb8f3a659a72151e6d138b718444 /arch/x86_64/include | |
| parent | 58680f7d84ca5771be31c0037e8caf5791d79b3c (diff) | |
| download | teachos-efcb913196ccf0386a557e8c1053c430e5896179.tar.xz teachos-efcb913196ccf0386a557e8c1053c430e5896179.zip | |
Convert bitset to uint64_t instead of uint64_t to bitset
Diffstat (limited to 'arch/x86_64/include')
| -rw-r--r-- | arch/x86_64/include/arch/memory/paging/page_mapper.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86_64/include/arch/memory/paging/page_mapper.hpp b/arch/x86_64/include/arch/memory/paging/page_mapper.hpp index c07c73c..e08f195 100644 --- a/arch/x86_64/include/arch/memory/paging/page_mapper.hpp +++ b/arch/x86_64/include/arch/memory/paging/page_mapper.hpp @@ -83,7 +83,7 @@ namespace teachos::arch::memory::paging arch::exception_handling::assert(!level1_entry.contains_flags(entry::HUGE_PAGE), "[Page Mapper] Unable to map huge pages"); arch::exception_handling::assert(level1_entry.is_unused(), "[Page Mapper] Page table entry is already used"); - level1_entry.set_entry(frame, flags | std::bitset<64U>{entry::PRESENT}); + level1_entry.set_entry(frame, flags.to_ulong() | entry::PRESENT); } /** |
