[PATCH] firmware: Fix find hart index

Xiang W wxjstz at 126.com
Fri Jun 16 00:03:51 PDT 2023


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 at 126.com>
---
 firmware/fw_base.S | 1 -
 1 file changed, 1 deletion(-)

diff --git a/firmware/fw_base.S b/firmware/fw_base.S
index fff09e1..b947423 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
 
-- 
2.39.2




More information about the opensbi mailing list