summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arch/arm/imx-common/imx_bootaux.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/arm/imx-common/imx_bootaux.c b/arch/arm/imx-common/imx_bootaux.c
index 365c32f3dd..793961098f 100644
--- a/arch/arm/imx-common/imx_bootaux.c
+++ b/arch/arm/imx-common/imx_bootaux.c
@@ -80,9 +80,7 @@ static unsigned long load_elf_image_phdr(unsigned long addr)
i, dst, phdr->p_filesz);
if (phdr->p_filesz)
memcpy(dst, src, phdr->p_filesz);
- if (phdr->p_filesz != phdr->p_memsz)
- memset(dst + phdr->p_filesz, 0x00,
- phdr->p_memsz - phdr->p_filesz);
+
flush_cache((unsigned long)dst & ~(CONFIG_SYS_CACHELINE_SIZE-1),
ALIGN(phdr->p_filesz, CONFIG_SYS_CACHELINE_SIZE));
}