mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Lucas Stach <l.stach@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH 2/4] ARM: nxp-imx8mq-evk: switch the PBL memcpy parameters to common variables
Date: Thu, 19 Dec 2019 16:19:27 +0100	[thread overview]
Message-ID: <20191219151929.19521-2-l.stach@pengutronix.de> (raw)
In-Reply-To: <20191219151929.19521-1-l.stach@pengutronix.de>

Use the variables defined in sections.h, instead of hand rolling the
same computation.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
 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@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  reply	other threads:[~2019-12-19 15:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-19 15:19 [PATCH 1/4] ARM: nxp-imx8mq-evk: switch to SPDX license header Lucas Stach
2019-12-19 15:19 ` Lucas Stach [this message]
2019-12-19 15:19 ` [PATCH 3/4] ARM: nxp-imx8mq-evk: clean up nxp_imx8mq_evk_start Lucas Stach
2019-12-19 15:19 ` [PATCH 4/4] ARM: nxp-imx8mq-evk: fix bootflow comment Lucas Stach
2019-12-20 15:15 ` [PATCH 1/4] ARM: nxp-imx8mq-evk: switch to SPDX license header Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191219151929.19521-2-l.stach@pengutronix.de \
    --to=l.stach@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox