aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-03-18 15:24:26 +0100
committerFelix Morgner <felix.morgner@ost.ch>2026-03-18 15:24:26 +0100
commit12c0586ee15cadfa178e6982dc0f76b047cb2df9 (patch)
tree7ef0e4dda9960baa93cb572af04f137cd2cebc81 /arch/x86_64/src
parentd25a933ee9df6bc34e806f71b86afb68c391a177 (diff)
downloadteachos-12c0586ee15cadfa178e6982dc0f76b047cb2df9.tar.xz
teachos-12c0586ee15cadfa178e6982dc0f76b047cb2df9.zip
kapi/memory: remove page/frame size macros
Diffstat (limited to 'arch/x86_64/src')
-rw-r--r--arch/x86_64/src/memory/kernel_mapper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86_64/src/memory/kernel_mapper.cpp b/arch/x86_64/src/memory/kernel_mapper.cpp
index 08c32c5..e5bb7f8 100644
--- a/arch/x86_64/src/memory/kernel_mapper.cpp
+++ b/arch/x86_64/src/memory/kernel_mapper.cpp
@@ -71,7 +71,7 @@ namespace arch::memory
auto kernel_mapper::map_section(section_header_type const & section, std::string_view name,
kapi::memory::page_mapper & mapper) -> void
{
- auto number_of_pages = (section.size + (PLATFORM_PAGE_SIZE - 1)) / PLATFORM_PAGE_SIZE;
+ auto number_of_pages = (section.size + (kapi::memory::page::size - 1)) / kapi::memory::page::size;
auto linear_start_address = kapi::memory::linear_address{section.virtual_load_address};
auto physical_start_address = kapi::memory::physical_address{section.virtual_load_address & ~m_kernel_load_base};