From cd658673a35df8b0da3551e819e26d35c18b89f2 Mon Sep 17 00:00:00 2001 From: Tianhao Wang Date: Wed, 29 May 2024 19:53:52 +0200 Subject: mm: add stack based PMA use 8MiB reserved array to manage up to 4GiB of physical memory (4K Pages only) Signed-off-by: Tianhao Wang --- boot/startup-x86_64.s | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'boot') diff --git a/boot/startup-x86_64.s b/boot/startup-x86_64.s index 6392d0f..a8b44c2 100644 --- a/boot/startup-x86_64.s +++ b/boot/startup-x86_64.s @@ -186,3 +186,10 @@ pml4: pdp: resb 4096 alignb 4096 + +; reserve 8MiB for frame alloc. +; (see linker file) +[SECTION .global_free_page_stack] +free_page_stack: + resb 8388608 + alignb 4096 -- cgit v1.2.3-70-g09d2