aboutsummaryrefslogtreecommitdiff
path: root/kernel/kapi/memory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/kapi/memory.cpp')
-rw-r--r--kernel/kapi/memory.cpp3
1 files changed, 1 insertions, 2 deletions
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 <kstd/print>
#include <algorithm>
-#include <bit>
#include <cstddef>
#include <cstdint>
#include <optional>
@@ -130,7 +129,7 @@ namespace kapi::memory
active_page_mapper->map(page, frame, flags);
});
- auto bitmap_ptr = std::bit_cast<std::uint64_t *>(pmm_metadata_base.raw());
+ auto bitmap_ptr = static_cast<std::uint64_t *>(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);