aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/include
diff options
context:
space:
mode:
authorMatteo Gmür <matteo.gmuer1@ost.ch>2024-10-26 11:44:12 +0000
committerMatteo Gmür <matteo.gmuer1@ost.ch>2024-10-26 11:44:12 +0000
commitf4ab51df7f9ed783dbcfbecffc0a9d919c501135 (patch)
tree5f14cb0cd9a52c95e693535de7b00437ebfc7058 /arch/x86_64/include
parentccd3c37c281261d35c5f11352ef78160057c41a6 (diff)
downloadteachos-f4ab51df7f9ed783dbcfbecffc0a9d919c501135.tar.xz
teachos-f4ab51df7f9ed783dbcfbecffc0a9d919c501135.zip
Write P3 table into P4 table at index 0
Diffstat (limited to 'arch/x86_64/include')
-rw-r--r--arch/x86_64/include/arch/memory/paging/page_entry.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/x86_64/include/arch/memory/paging/page_entry.hpp b/arch/x86_64/include/arch/memory/paging/page_entry.hpp
index 9ca5469..ba972d6 100644
--- a/arch/x86_64/include/arch/memory/paging/page_entry.hpp
+++ b/arch/x86_64/include/arch/memory/paging/page_entry.hpp
@@ -35,6 +35,14 @@ namespace teachos::arch::memory::paging
};
/**
+ * @brief Creates a new entry object from a 64bit address. Should follow the scheme where bit index 12 - 51 are the
+ * actual address and the other bits are flags.
+ *
+ * @param flags Flags that will be passed to underlying std::bitset.
+ */
+ explicit entry(uint64_t flags);
+
+ /**
* @brief Whether the current page is unused, meaning the underlying std::bitset is 0.
*
* @return Current page is in memory.