diff --git a/firmware/fw_base.S b/firmware/fw_base.S index b950c0b836..0971612cf6 100644 --- a/firmware/fw_base.S +++ b/firmware/fw_base.S @@ -47,7 +47,7 @@ _start: bne a0, a6, _wait_for_boot_hart _try_lottery: /* Jump to relocation wait loop if we don't get relocation lottery */ - lla a6, _boot_status + lla a6, _relocate_lottery li a7, BOOT_STATUS_LOTTERY_DONE amoswap.w a6, a7, (a6) bnez a6, _wait_for_boot_hart @@ -371,6 +371,8 @@ _skip_trap_handler_hyp: .data .align 3 +_relocate_lottery: + RISCV_PTR 0 _boot_status: RISCV_PTR 0