diff options
Diffstat (limited to 'arch/x86_64/src/kapi/memory.cpp')
| -rw-r--r-- | arch/x86_64/src/kapi/memory.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/x86_64/src/kapi/memory.cpp b/arch/x86_64/src/kapi/memory.cpp index e05fde9..aa3eb58 100644 --- a/arch/x86_64/src/kapi/memory.cpp +++ b/arch/x86_64/src/kapi/memory.cpp @@ -27,15 +27,12 @@ namespace teachos::memory auto create_memory_information() -> x86_64::region_allocator::memory_information { auto const & mbi = boot::x86_64::multiboot_information_pointer.get(); - auto map = mbi->memory_map(); - // NOLINTBEGIN(cppcoreguidelines-pro-bounds-pointer-arithmetic) return {.image_range = std::make_pair(physical_address{&boot::x86_64::_start_physical}, physical_address{&boot::x86_64::_end_physical}), .mbi_range = std::make_pair(physical_address{std::bit_cast<std::byte *>(mbi)}, physical_address{std::bit_cast<std::byte *>(mbi) + mbi->size_bytes()}), - .memory_map = map}; - // NOLINTEND(cppcoreguidelines-pro-bounds-pointer-arithmetic) + .memory_map = mbi->memory_map()}; }; auto create_early_frame_allocator() |
