diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2025-10-29 13:35:58 +0100 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2025-10-29 13:35:58 +0100 |
| commit | 465817e3e124bafb95de0d8a030b66bc067046b6 (patch) | |
| tree | 1643b0ff302ad45ffb5b2b24fdd7d3c2aa2992f3 | |
| parent | 3a0b5678af98832e480115c409495ce835642a09 (diff) | |
| download | teachos-465817e3e124bafb95de0d8a030b66bc067046b6.tar.xz teachos-465817e3e124bafb95de0d8a030b66bc067046b6.zip | |
x86_64/memory: fix region_allocator initialization
| -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 a29a0cd..61d462f 100644 --- a/arch/x86_64/src/kapi/memory.cpp +++ b/arch/x86_64/src/kapi/memory.cpp @@ -29,8 +29,8 @@ namespace teachos::memory return {std::make_pair(physical_address{&boot::x86_64::_start_physical}, physical_address{&boot::x86_64::_end_physical}), - std::make_pair(physical_address{std::bit_cast<std::byte *>(&mbi)}, - physical_address{std::bit_cast<std::byte *>(&mbi) + mbi->size_bytes()}), + std::make_pair(physical_address{std::bit_cast<std::byte *>(mbi)}, + physical_address{std::bit_cast<std::byte *>(mbi) + mbi->size_bytes()}), map}; }; |
