diff options
author | Nathan Ringo <nathan@remexre.com> | 2024-09-15 03:25:30 -0500 |
---|---|---|
committer | Nathan Ringo <nathan@remexre.com> | 2024-09-15 03:25:30 -0500 |
commit | 49bf92a7aaf10a4777ea512303e442588f4ce2e5 (patch) | |
tree | 2ad6e4baf4ea0c2e728a5c103139da520e32f378 /boards | |
parent | fc918ea68d536fa9f219e7b4decdae1f561c9886 (diff) |
Start of serious allocator work.
Diffstat (limited to 'boards')
-rw-r--r-- | boards/qemu-virt/qemu-virt.s | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/boards/qemu-virt/qemu-virt.s b/boards/qemu-virt/qemu-virt.s index 36ccee0..9428db6 100644 --- a/boards/qemu-virt/qemu-virt.s +++ b/boards/qemu-virt/qemu-virt.s @@ -71,8 +71,9 @@ _start: .type hart0_full_boot, STT_FUNC hart0_full_boot: - ## Set up hart0's stack, leaving room for the EarlyBootAddrs. - la sp, hart0_initial_stack_top - 9 * 8 + ## Set up hart0's stack, leaving room for the EarlyBootAddrs and CPULocals. + la tp, hart0_initial_stack_top - (4 * 8) + addi sp, tp, -(9 * 8) ## Write a canary to the bottom of hart0's stack. li t0, 0xdead0bad0defaced |