aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2025-10-29 13:35:58 +0100
committerFelix Morgner <felix.morgner@ost.ch>2025-10-29 13:35:58 +0100
commit465817e3e124bafb95de0d8a030b66bc067046b6 (patch)
tree1643b0ff302ad45ffb5b2b24fdd7d3c2aa2992f3
parent3a0b5678af98832e480115c409495ce835642a09 (diff)
downloadteachos-465817e3e124bafb95de0d8a030b66bc067046b6.tar.xz
teachos-465817e3e124bafb95de0d8a030b66bc067046b6.zip
x86_64/memory: fix region_allocator initialization
-rw-r--r--arch/x86_64/src/kapi/memory.cpp4
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};
};