1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 17:27:35 +00:00

Kernel/riscv64: Don't use the memory before .text as the initial stack

This new stack has the same size as the x86_64 prekernel stack (32K).
This commit is contained in:
Sönke Holz 2024-02-15 21:12:06 +01:00 committed by Jelle Raaijmakers
parent 3b6a300ed7
commit 227818de9b
3 changed files with 8 additions and 10 deletions

View file

@ -98,6 +98,12 @@ SECTIONS
*(.heap)
} :bss
. = ALIGN(4K);
start_of_initial_stack = .;
. += 32K;
end_of_initial_stack = .;
/*
FIXME: 8MB is enough space for all of the tables required to identity map
physical memory. 8M is wasteful, so this should be properly calculated.