Skip to content

Commit

Permalink
core: kernel_generic_entry_a64.S: support CFG_DT_ADDR
Browse files Browse the repository at this point in the history
Add CFG_DT_ADDR for a64 to override the DT address passing
through arg2.

Signed-off-by: Ying-Chun Liu (PaulLiu) <paulliu@debian.org>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Tested-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
  • Loading branch information
grandpaul authored and jforissier committed Jul 4, 2019
1 parent d2c717b commit 012a2be
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/arch/arm/kernel/generic_entry_a64.S
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@

FUNC _start , :
mov x19, x0 /* Save pagable part address */
#if defined(CFG_DT_ADDR)
ldr x20, =CFG_DT_ADDR
#else
mov x20, x2 /* Save DT address */
#endif

adr x0, reset_vect_table
msr vbar_el1, x0
Expand Down

0 comments on commit 012a2be

Please sign in to comment.