summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiang W <wxjstz@126.com>2023-06-16 15:03:51 +0800
committerAnup Patel <anup@brainfault.org>2023-06-21 10:20:51 +0530
commitd64942f0e4fe63a248e7ba3dd7ff4dec02954134 (patch)
tree234728f6219cd5f7fdea84cb4ad648be797955ee
parent8153b2622b08802cc542f30a1fcba407a5667ab9 (diff)
downloadopensbi-d64942f0e4fe63a248e7ba3dd7ff4dec02954134.tar.gz
opensbi-d64942f0e4fe63a248e7ba3dd7ff4dec02954134.zip
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>
-rw-r--r--firmware/fw_base.S1
1 files changed, 0 insertions, 1 deletions
diff --git a/firmware/fw_base.S b/firmware/fw_base.S
index fff09e13..b9474239 100644
--- a/firmware/fw_base.S
+++ b/firmware/fw_base.S
@@ -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