Commit e7725deb authored by Benjamin Herrenschmidt's avatar Benjamin Herrenschmidt Committed by Linus Torvalds

[PATCH] ppc64: Fix zImage wrapper incorrect size to flush_cache()

This patch fixes a bug in the ppc64 zImage wrapper causing it to pass an
incorrect size to flush_cache() when flushing the data and instruction
caches prior to jumping to the kernel entry.  This causes crashes on
firmare environment that do strict MMU mapping only of actually allocated
areas
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent c4c3bbc5
......@@ -200,7 +200,7 @@ void start(unsigned long a1, unsigned long a2, void *promptr)
vmlinux.addr += (unsigned long)elf64ph->p_offset;
vmlinux.size -= (unsigned long)elf64ph->p_offset;
flush_cache((void *)vmlinux.addr, vmlinux.memsize);
flush_cache((void *)vmlinux.addr, vmlinux.size);
if (a1)
printf("initrd head: 0x%lx\n\r", *((u32 *)initrd.addr));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment