firmware: Fix find hart index

After the loop to find the hartid is launched, assigning -1 to
index will fail in the subsequent compare instruction bge. Fix
This.

Signed-off-by: Xiang W <wxjstz@126.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
Xiang W 2023-06-16 15:03:51 +08:00 committed by Anup Patel
parent 8153b2622b
commit d64942f0e4

View file

@ -471,7 +471,6 @@ _start_warm:
add s9, s9, 4 add s9, s9, 4
add a4, a4, 1 add a4, a4, 1
blt a4, s7, 1b blt a4, s7, 1b
li a4, -1
2: add s6, a4, zero 2: add s6, a4, zero
3: bge s6, s7, _start_hang 3: bge s6, s7, _start_hang