diff options
author | Clement Leger <cleger@kalray.eu> | 2019-09-04 13:24:50 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-09-06 09:15:44 +0200 |
commit | aa329e50ac45ecdcd73973b5a5e27f9eaf3a7fb3 (patch) | |
tree | aa6bece920904af2ef3f26471c47fd799b2bc994 /arch/mips/lib | |
parent | 0ca284b26d0ef59912380478b71a90976e3e79cc (diff) | |
download | barebox-aa329e50ac45ecdcd73973b5a5e27f9eaf3a7fb3.tar.gz barebox-aa329e50ac45ecdcd73973b5a5e27f9eaf3a7fb3.tar.xz |
mips: bootm: Cast elf entry into unsigned long
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>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/mips/lib')
-rw-r--r-- | arch/mips/lib/bootm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/lib/bootm.c b/arch/mips/lib/bootm.c index f14540a4c4..5bb09cc2de 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)); |