From 465817e3e124bafb95de0d8a030b66bc067046b6 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Wed, 29 Oct 2025 13:35:58 +0100 Subject: x86_64/memory: fix region_allocator initialization --- arch/x86_64/src/kapi/memory.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'arch') 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(&mbi)}, - physical_address{std::bit_cast(&mbi) + mbi->size_bytes()}), + std::make_pair(physical_address{std::bit_cast(mbi)}, + physical_address{std::bit_cast(mbi) + mbi->size_bytes()}), map}; }; -- cgit v1.2.3