mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Clement Leger <cleger@kalray.eu>
To: Oleksij Rempel <o.rempel@pengutronix.de>,
	Barebox List <barebox@lists.infradead.org>,
	Sascha Hauer <s.hauer@pengutronix.de>
Cc: Clement Leger <cleger@kalray.eu>
Subject: [PATCH v4 2/2] mips: bootm: Cast elf entry into unsigned long
Date: Wed,  4 Sep 2019 13:24:50 +0200	[thread overview]
Message-ID: <20190904112450.28168-2-cleger@kalray.eu> (raw)
In-Reply-To: <20190904112450.28168-1-cleger@kalray.eu>

Since elf entry type is now a u64 to accomodate both type of elf files
(64 and 32 bits), we need to cast it to the pointer length before
casting it to the pointer type.

Signed-off-by: Clement Leger <cleger@kalray.eu>
---
 arch/mips/lib/bootm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/mips/lib/bootm.c b/arch/mips/lib/bootm.c
index f14540a4c..5bb09cc2d 100644
--- a/arch/mips/lib/bootm.c
+++ b/arch/mips/lib/bootm.c
@@ -72,7 +72,7 @@ static int do_bootm_elf(struct image_data *data)
 
 	shutdown_barebox();
 
-	entry = (void *)elf->entry;
+	entry = (void *) (unsigned long) elf->entry;
 
 	entry(-2, phys_to_virt((unsigned long)fdt));
 
-- 
2.15.0.276.g89ea799


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  reply	other threads:[~2019-09-04 11:25 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-18 19:16 [PATCH] elf: add 64 bits elf support Clément Leger
2019-03-20  8:05 ` Sascha Hauer
2019-03-20  8:18   ` Clément Leger
2019-03-20 16:28     ` Clément Leger
2019-03-27  7:48       ` Sascha Hauer
2019-03-27  7:59         ` Clément Leger
2019-09-01 14:09         ` [PATCH v3] elf: add 64 bits elf loading support Clement Leger
2019-09-02  6:07           ` Oleksij Rempel
2019-09-02  7:09             ` Clément Leger
2019-09-04 11:24             ` [PATCH v4 1/2] " Clement Leger
2019-09-04 11:24               ` Clement Leger [this message]
2019-09-06  7:16               ` 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=20190904112450.28168-2-cleger@kalray.eu \
    --to=cleger@kalray.eu \
    --cc=barebox@lists.infradead.org \
    --cc=o.rempel@pengutronix.de \
    --cc=s.hauer@pengutronix.de \
    /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