diff options
| author | Tianhao Wang <shrik3@mailbox.org> | 2024-05-29 19:53:52 +0200 |
|---|---|---|
| committer | Tianhao Wang <shrik3@mailbox.org> | 2024-06-11 15:17:11 +0200 |
| commit | cd658673a35df8b0da3551e819e26d35c18b89f2 (patch) | |
| tree | 74c209b519290eb43545e800b88ddf9dfa796a7a /boot/startup-x86_64.s | |
| parent | 9cf85e88211512b0410f9bb9f2f19ea4ce9a8190 (diff) | |
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 <shrik3@mailbox.org>
Diffstat (limited to 'boot/startup-x86_64.s')
| -rw-r--r-- | boot/startup-x86_64.s | 7 |
1 files changed, 7 insertions, 0 deletions
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 |
