firmware: Fix find hart index
authorXiang W <wxjstz@126.com>
Fri, 16 Jun 2023 07:03:51 +0000 (15:03 +0800)
committerAnup Patel <anup@brainfault.org>
Wed, 21 Jun 2023 04:50:51 +0000 (10:20 +0530)
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>
firmware/fw_base.S

index fff09e1..b947423 100644 (file)
@@ -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