diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2026-03-16 08:37:35 +0100 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2026-03-16 08:37:35 +0100 |
| commit | 408b499a47c8b4ad04bed8bb789583c721ce6955 (patch) | |
| tree | 3959d536e7744892b03a49fce6a80413c7d6bb84 /arch | |
| parent | ccad1abdcb0951a7e30eee536c546e5d77ab4b33 (diff) | |
| download | teachos-408b499a47c8b4ad04bed8bb789583c721ce6955.tar.xz teachos-408b499a47c8b4ad04bed8bb789583c721ce6955.zip | |
x86_64/memory: add todo for students
Diffstat (limited to 'arch')
| -rw-r--r-- | arch/x86_64/kapi/memory.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86_64/kapi/memory.cpp b/arch/x86_64/kapi/memory.cpp index e704408..5cbe65c 100644 --- a/arch/x86_64/kapi/memory.cpp +++ b/arch/x86_64/kapi/memory.cpp @@ -191,6 +191,8 @@ namespace kapi::memory auto mbi_start = frame::containing(mbi_address); auto mbi_end = frame::containing(mbi_address + mbi_size) + 1; + // TODO BA-FS26: Protect MB2 boot modules + std::ranges::for_each(std::views::iota(mbi_start, mbi_end), [&](auto frame) { new_allocator.mark_used(frame); }); } |
