diff options
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 |