mirror of
https://github.com/Fishwaldo/opensbi.git
synced 2025-03-15 19:31:32 +00:00
firmware: For no relocation skip two stage wait for secondary HARTs
When relocation is not required (i.e. _load_start == _link_start), we can skip two stage wait for secondary HARTs. This means secondary HARTs can skip the _wait_relocate_copy_done() loop and directly jump to the _wait_for_boot_hart() loop when no relocation not required. Signed-off-by: Anup Patel <anup.patel@wdc.com>
This commit is contained in:
parent
da398ef8d6
commit
bb3edd36af
1 changed files with 1 additions and 0 deletions
|
@ -106,6 +106,7 @@ _wait_relocate_copy_done:
|
|||
la t0, _start
|
||||
la t1, _link_start
|
||||
REG_L t1, 0(t1)
|
||||
beq t0, t1, _wait_for_boot_hart
|
||||
la t2, _boot_status
|
||||
sub t2, t2, t0
|
||||
add t2, t2, t1
|
||||
|
|
Loading…
Add table
Reference in a new issue