Skip to content

Commit

Permalink
core: arm: fix NS entrypoint for secondary cores
Browse files Browse the repository at this point in the history
The NS entry was originally backup from LR to R5.
The commit f332e77 ("core: arm: refactor boot argument handling")
revised the LR preservation to R8. Therefore, the way to retrieve the
NS entry for secondary cores should be updated as well.

Fixes: f332e77 ("core: arm: refactor boot argument handling")
Signed-off-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com>
  • Loading branch information
ChiaweiW committed Nov 30, 2023
1 parent aac2c71 commit 5dceef4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/arch/arm/kernel/entry_a32.S
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,7 @@ UNWIND( .cantunwind)
bl boot_core_hpen
ldm r0, {r0, r6}
#else
mov r0, r5 /* ns-entry address */
mov r0, r8 /* ns-entry address */
mov r6, #0
#endif
bl boot_init_secondary
Expand Down

0 comments on commit 5dceef4

Please sign in to comment.