From 80ae75bf039820ecb332ae1ab86ef6ce4e2675e4 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Mon, 16 Mar 2026 10:38:54 +0100 Subject: kapi/memory: support additional address arithmetic --- kernel/kapi/memory.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'kernel/kapi') diff --git a/kernel/kapi/memory.cpp b/kernel/kapi/memory.cpp index 767bcd7..b1fb616 100644 --- a/kernel/kapi/memory.cpp +++ b/kernel/kapi/memory.cpp @@ -7,7 +7,6 @@ #include #include -#include #include #include #include @@ -130,7 +129,7 @@ namespace kapi::memory active_page_mapper->map(page, frame, flags); }); - auto bitmap_ptr = std::bit_cast(pmm_metadata_base.raw()); + auto bitmap_ptr = static_cast(pmm_metadata_base); auto bitmap = std::span{bitmap_ptr, (bitmap_bytes + sizeof(std::uint64_t) - 1uz) / sizeof(std::uint64_t)}; allocator.emplace(bitmap, frame_count); -- cgit v1.2.3