Use the variables defined in sections.h, instead of hand rolling the same computation. Signed-off-by: Lucas Stach <l.stach@xxxxxxxxxxxxxx> --- arch/arm/boards/nxp-imx8mq-evk/lowlevel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/boards/nxp-imx8mq-evk/lowlevel.c b/arch/arm/boards/nxp-imx8mq-evk/lowlevel.c index d2042bffcacc..c2f3071e3a9a 100644 --- a/arch/arm/boards/nxp-imx8mq-evk/lowlevel.c +++ b/arch/arm/boards/nxp-imx8mq-evk/lowlevel.c @@ -90,7 +90,8 @@ static __noreturn noinline void nxp_imx8mq_evk_start(void) * On completion the TF-A will jump to MX8MQ_ATF_BL33_BASE_ADDR in * EL2. Copy ourselves there. */ - memcpy((void *)MX8MQ_ATF_BL33_BASE_ADDR, _text, __bss_start - _text); + memcpy((void *)MX8MQ_ATF_BL33_BASE_ADDR, + __image_start, barebox_pbl_size); imx8mq_atf_load_bl31(bl31, bl31_size); /* not reached */ } -- 2.20.1 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox