From cd665ec172dadd049e7c1830b070f15b58fb9011 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Tue, 18 Aug 2026 13:51:55 +0200 Subject: kstd: flatten units namespace --- arch/x86_64/kapi/memory.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'arch/x86_64/kapi/memory.cpp') diff --git a/arch/x86_64/kapi/memory.cpp b/arch/x86_64/kapi/memory.cpp index a6f84f07..37b4c7f3 100644 --- a/arch/x86_64/kapi/memory.cpp +++ b/arch/x86_64/kapi/memory.cpp @@ -129,7 +129,7 @@ namespace kapi::memory auto module_physical_start = physical_address{module.start_address}; auto module_virtual_start = linear_address{module.start_address + std::bit_cast(&arch::boot::TEACHOS_VMA)}; - auto module_size = static_cast(module.end_address - module.start_address); + auto module_size = static_cast(module.end_address - module.start_address); auto module_block_count = (module_size + frame::size - 1_B) / frame::size; for (auto i = 0uz; i < module_block_count; ++i) @@ -150,7 +150,7 @@ namespace kapi::memory })) { auto start = frame::containing(physical_address{region.base}); - auto count = kstd::units::bytes{region.size_in_B} / page::size; + auto count = kstd::bytes{region.size_in_B} / page::size; new_allocator.release_many({start, count}); } -- cgit v1.2.3