diff options
| author | Matteo Gmür <matteo.gmuer1@ost.ch> | 2024-10-26 13:43:51 +0000 |
|---|---|---|
| committer | Matteo Gmür <matteo.gmuer1@ost.ch> | 2024-10-26 13:43:51 +0000 |
| commit | ca17ed52ea768f1e1c837207f7d27afa6ed99cc2 (patch) | |
| tree | fec81a2658e1fff0ad3a5428865be9ac5f204245 /arch/x86_64/src/memory | |
| parent | d86af47f0b62cb3ae302fb292747944620542db1 (diff) | |
| download | teachos-ca17ed52ea768f1e1c837207f7d27afa6ed99cc2.tar.xz teachos-ca17ed52ea768f1e1c837207f7d27afa6ed99cc2.zip | |
Update boot.s comments and comment initalize page tables out
Diffstat (limited to 'arch/x86_64/src/memory')
| -rw-r--r-- | arch/x86_64/src/memory/paging/page_table.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86_64/src/memory/paging/page_table.cpp b/arch/x86_64/src/memory/paging/page_table.cpp index 93cc0de..868cf86 100644 --- a/arch/x86_64/src/memory/paging/page_table.cpp +++ b/arch/x86_64/src/memory/paging/page_table.cpp @@ -109,6 +109,8 @@ namespace teachos::arch::memory::paging auto page_table_handle::initialize_page_tables() -> void { + // TODO: This should be done differently and only once the other methods are working see Rempaing the Kernel + /* exception_handling::assert(handle_level == page_table_handle::LEVEL4, "[Page Table] Attempted to initialize a page table of level 3 or lower"); auto level3_page_table = std::construct_at(reinterpret_cast<page_table *>(&_end_of_image)); @@ -124,6 +126,7 @@ namespace teachos::arch::memory::paging } size_t const flags = reinterpret_cast<size_t>(level3_page_table); this->operator[](0U) = entry{flags}; + */ } auto page_table_handle::zero_entries() -> void { handle->zero_entries(); } |
