1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 12:57: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

@ -35,8 +35,8 @@ Lclear_bss_loop:
bltu t0, t1, Lclear_bss_loop
Lclear_bss_done:
// Let the stack start before .text for now.
lla sp, start
// Set the stack pointer register to the location defined in the linker script.
lla sp, end_of_initial_stack
// Zero all registers except sp, a0 and a1.
li ra, 0