aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/kapi
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-08-18 13:51:55 +0200
committerFelix Morgner <felix.morgner@ost.ch>2026-08-18 13:51:55 +0200
commitcd665ec172dadd049e7c1830b070f15b58fb9011 (patch)
tree42c2eb8ecb984d179263f68cab1c6c2667e8dd2c /arch/x86_64/kapi
parent5754a8591252da5d5eeb4281064f0b82bfdc03a8 (diff)
downloadkernel-cd665ec172dadd049e7c1830b070f15b58fb9011.tar.xz
kernel-cd665ec172dadd049e7c1830b070f15b58fb9011.zip
kstd: flatten units namespace
Diffstat (limited to 'arch/x86_64/kapi')
-rw-r--r--arch/x86_64/kapi/memory.cpp4
1 files changed, 2 insertions, 2 deletions
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<std::uintptr_t>(&arch::boot::TEACHOS_VMA)};
- auto module_size = static_cast<kstd::units::bytes>(module.end_address - module.start_address);
+ auto module_size = static_cast<kstd::bytes>(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});
}