mirror of
https://github.com/Fishwaldo/opensbi.git
synced 2025-06-28 00:58:45 +00:00
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:
parent
8153b2622b
commit
d64942f0e4
1 changed files with 0 additions and 1 deletions
|
@ -471,7 +471,6 @@ _start_warm:
|
|||
add s9, s9, 4
|
||||
add a4, a4, 1
|
||||
blt a4, s7, 1b
|
||||
li a4, -1
|
||||
2: add s6, a4, zero
|
||||
3: bge s6, s7, _start_hang
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue