diff options
| author | Fabian Imhof <fabian.imhof@ost.ch> | 2024-10-20 12:17:58 +0000 |
|---|---|---|
| committer | Fabian Imhof <fabian.imhof@ost.ch> | 2024-10-20 12:17:58 +0000 |
| commit | aa0634589cb7d51f57e3e555bb15ebca99bc162e (patch) | |
| tree | fec7e76845a0784bff58ae255bfc68768ad5a2fc /arch/x86_64/src/memory | |
| parent | da2341ec12128d3b4983a67d39aeaf76b1781fa8 (diff) | |
| download | teachos-aa0634589cb7d51f57e3e555bb15ebca99bc162e.tar.xz teachos-aa0634589cb7d51f57e3e555bb15ebca99bc162e.zip | |
document page mapping and entry
Diffstat (limited to 'arch/x86_64/src/memory')
| -rw-r--r-- | arch/x86_64/src/memory/paging/page_entry.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86_64/src/memory/paging/page_entry.cpp b/arch/x86_64/src/memory/paging/page_entry.cpp index 30a8961..8a7442e 100644 --- a/arch/x86_64/src/memory/paging/page_entry.cpp +++ b/arch/x86_64/src/memory/paging/page_entry.cpp @@ -33,10 +33,10 @@ namespace teachos::arch::memory::paging auto entry::contains_flags(std::bitset<64U> other) const -> bool { return (flags & other) == other; } - auto entry::set_entry(allocator::physical_frame frame, std::bitset<64U> additional_flags) -> void + auto entry::set_entry(allocator::physical_frame frame, std::bitset<64U> flags) -> void { exception_handling::assert((frame.start_address() & ~0x000fffff'fffff000) == 0, "[Paging Entry] Start address is not aligned with page"); - flags = std::bitset<64U>(frame.start_address()) | additional_flags; + flags = std::bitset<64U>(frame.start_address()) | flags; } } // namespace teachos::arch::memory::paging |
