aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/CMakeLists.txt
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2025-12-02 18:49:36 +0100
committerFelix Morgner <felix.morgner@ost.ch>2025-12-02 18:49:36 +0100
commit331c070547634a2096c5e2165559fb0f11ee6330 (patch)
treeb4bb1f0ce663c6eaec81f3d2e5995a94757a32d3 /arch/x86_64/CMakeLists.txt
parent44d4844ce63e7c00b4028bb918eed5d9fb795578 (diff)
downloadteachos-331c070547634a2096c5e2165559fb0f11ee6330.tar.xz
teachos-331c070547634a2096c5e2165559fb0f11ee6330.zip
kapi: make PLATFORM_*_SIZE constexpr
Diffstat (limited to 'arch/x86_64/CMakeLists.txt')
-rw-r--r--arch/x86_64/CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/x86_64/CMakeLists.txt b/arch/x86_64/CMakeLists.txt
index 9afbce3..4d984cf 100644
--- a/arch/x86_64/CMakeLists.txt
+++ b/arch/x86_64/CMakeLists.txt
@@ -41,7 +41,12 @@ target_sources("x86_64" PRIVATE
FILES ${ARCH_HEADERS}
)
+target_compile_definitions("x86_64" PUBLIC
+ "PLATFORM_PAGE_SIZE=4096"
+ "PLATFORM_FRAME_SIZE=PLATFORM_PAGE_SIZE"
+)
+
set(KERNEL_LINKER_SCRIPT
"${CMAKE_CURRENT_SOURCE_DIR}/scripts/kernel.ld"
PARENT_SCOPE
-) \ No newline at end of file
+)