projects
/
platform
/
kernel
/
opensbi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8153b26
)
firmware: Fix find hart index
author
Xiang W
<wxjstz@126.com>
Fri, 16 Jun 2023 07:03:51 +0000
(15:03 +0800)
committer
Anup 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
patch
|
blob
|
history
diff --git
a/firmware/fw_base.S
b/firmware/fw_base.S
index
fff09e1
..
b947423
100644
(file)
--- 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