diff options
author | Denis Orlov <denorl2009@gmail.com> | 2023-03-15 11:59:53 +0300 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2023-03-16 09:59:35 +0100 |
commit | 840cbe82579563346ee9097524123c17818fbf60 (patch) | |
tree | 144ab55b15fd8e6f72719606f8394aac40bf76ac /arch/mips | |
parent | 2158810cc8c6524d5d95fe93e802277b81b862d3 (diff) | |
download | barebox-840cbe82579563346ee9097524123c17818fbf60.tar.gz barebox-840cbe82579563346ee9097524123c17818fbf60.tar.xz |
MIPS: bootm: remove unnecessary phys/virt conversions
They are not doing anything there - we should already have proper
virtual addresses represented by those pointers.
Signed-off-by: Denis Orlov <denorl2009@gmail.com>
Link: https://lore.barebox.org/20230315085953.4094660-4-denorl2009@gmail.com
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/lib/bootm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/lib/bootm.c b/arch/mips/lib/bootm.c index 69ce9b3904..19d82ec375 100644 --- a/arch/mips/lib/bootm.c +++ b/arch/mips/lib/bootm.c @@ -62,7 +62,7 @@ static int do_bootm_elf(struct image_data *data) } pr_info("Starting application at 0x%08lx, dts 0x%08lx...\n", - phys_to_virt(data->os_address), data->of_root_node); + data->os_address, data->of_root_node); if (data->dryrun) goto bootm_free_fdt; @@ -75,7 +75,7 @@ static int do_bootm_elf(struct image_data *data) entry = (void *) (unsigned long) data->os_address; - entry(-2, phys_to_virt((unsigned long)fdt)); + entry(-2, fdt); pr_err("ELF application terminated\n"); ret = -EINVAL; |