diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2025-12-23 20:30:19 +0100 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2025-12-23 20:30:19 +0100 |
| commit | 2fc7576c3375dabeb273ca95cc702a1957dbab10 (patch) | |
| tree | eb5433434f3a659a9b759c58eb428e01337afced /arch/x86_64/src | |
| parent | 57ab6985b524ee5d45cd2471fa3af0917d93da34 (diff) | |
| download | teachos-2fc7576c3375dabeb273ca95cc702a1957dbab10.tar.xz teachos-2fc7576c3375dabeb273ca95cc702a1957dbab10.zip | |
x86_64/kapi: fix OBO error during MBI remap
Diffstat (limited to 'arch/x86_64/src')
| -rw-r--r-- | arch/x86_64/src/kapi/memory.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86_64/src/kapi/memory.cpp b/arch/x86_64/src/kapi/memory.cpp index 73ee669..e2681a6 100644 --- a/arch/x86_64/src/kapi/memory.cpp +++ b/arch/x86_64/src/kapi/memory.cpp @@ -142,8 +142,8 @@ namespace teachos::memory for (auto i = 0uz; i < mbi_block_count; ++i) { - auto page = page::containing(mbi_virtual_start) + 1; - auto frame = frame::containing(mbi_physical_start) + 1; + auto page = page::containing(mbi_virtual_start) + i; + auto frame = frame::containing(mbi_physical_start) + i; mapper.map(page, frame, page_mapper::flags::empty); } } |
