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)
commitd64942f0e4fe63a248e7ba3dd7ff4dec02954134
tree234728f6219cd5f7fdea84cb4ad648be797955ee
parent8153b2622b08802cc542f30a1fcba407a5667ab9
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>
firmware/fw_base.S