summaryrefslogtreecommitdiff
path: root/drivers/remoteproc/rproc-elf-loader.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/remoteproc/rproc-elf-loader.c')
-rw-r--r--drivers/remoteproc/rproc-elf-loader.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/remoteproc/rproc-elf-loader.c b/drivers/remoteproc/rproc-elf-loader.c
index 67937a7595..7574ba3fb3 100644
--- a/drivers/remoteproc/rproc-elf-loader.c
+++ b/drivers/remoteproc/rproc-elf-loader.c
@@ -86,7 +86,8 @@ int rproc_elf32_load_image(struct udevice *dev, unsigned long addr)
continue;
if (ops->device_to_virt)
- dst = ops->device_to_virt(dev, (ulong)dst);
+ dst = ops->device_to_virt(dev, (ulong)dst,
+ phdr->p_memsz);
dev_dbg(dev, "Loading phdr %i to 0x%p (%i bytes)\n",
i, dst, phdr->p_filesz);