mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2026-07-02 22:02:01 +01:00
firmware: Fix comment after relocation completion
After relocation is done, the code is running from the load address, not the link address. Fix the comment to correctly reflect this. Signed-off-by: Zong Li <zong.li@sifive.com> Reviewed-by: Anup Patel <anup@brainfault.org> Link: https://lore.kernel.org/r/20260626022121.1885209-1-zong.li@sifive.com Signed-off-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
+1
-1
@@ -93,7 +93,7 @@ _sc_fail:
|
|||||||
addi t0, t0, (__SIZEOF_LONG__ * 3)
|
addi t0, t0, (__SIZEOF_LONG__ * 3)
|
||||||
blt t0, t1, 2b
|
blt t0, t1, 2b
|
||||||
_relocate_done:
|
_relocate_done:
|
||||||
/* At this point we are running from link address */
|
/* At this point we are running from load address */
|
||||||
|
|
||||||
/* Reset all registers except ra, a0, a1, a2, a3 and a4 for boot HART */
|
/* Reset all registers except ra, a0, a1, a2, a3 and a4 for boot HART */
|
||||||
li ra, 0
|
li ra, 0
|
||||||
|
|||||||
Reference in New Issue
Block a user