From 49bf92a7aaf10a4777ea512303e442588f4ce2e5 Mon Sep 17 00:00:00 2001 From: Nathan Ringo Date: Sun, 15 Sep 2024 03:25:30 -0500 Subject: Start of serious allocator work. --- boards/qemu-virt/qemu-virt.s | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'boards') 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 -- cgit v1.2.3