aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/include
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86_64/include')
-rw-r--r--arch/x86_64/include/arch/memory/paging.hpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/x86_64/include/arch/memory/paging.hpp b/arch/x86_64/include/arch/memory/paging.hpp
index 7b705ac..c13c3fe 100644
--- a/arch/x86_64/include/arch/memory/paging.hpp
+++ b/arch/x86_64/include/arch/memory/paging.hpp
@@ -91,9 +91,6 @@ namespace teachos::arch::memory
*/
auto contains_flags(std::bitset<64U> other) const -> bool;
- std::bitset<64U> flags; ///< Underlying bitset used to read the flags from. Bits 9 - 11 and 52 - 62 can be freely
- ///< used for additional flags by the operating system.
-
private:
/**
* @brief Extracts the physical address from the underlying bitset read from bit index 12 - 51. Is a 52 bit page
@@ -103,6 +100,9 @@ namespace teachos::arch::memory
* @return Extracted physical address of the next page or of the frame for P1 page tables.
*/
auto calculate_physical_address() const -> std::size_t;
+
+ std::bitset<64U> flags; ///< Underlying bitset used to read the flags from. Bits 9 - 11 and 52 - 62 can be freely
+ ///< used for additional flags by the operating system.
};
/**
@@ -132,7 +132,7 @@ namespace teachos::arch::memory
* @param index
* @return An optional of the next page table or null
*/
- auto next_table(size_t index) const -> std::optional<const page_table *>;
+ auto next_table(std::size_t index) const -> std::optional<const page_table *>;
/**
* @brief Index operator overload to access specific entries directy
@@ -140,7 +140,7 @@ namespace teachos::arch::memory
* @param index
* @return The address of the accessed entry
*/
- entry & operator[](size_t index)
+ entry & operator[](std::size_t index)
{
arch::exception_handling::assert(index < PAGE_TABLE_ENTRY_COUNT, "[Page Table] index out of bounds");
return entries[index];