[PATCH] ARM: Fix bad SP address after relocating kernel
From: tony@atomide.com (Tony Lindgren)
Date: 2011-04-27 07:48:33
Also in:
linux-omap
From: tony@atomide.com (Tony Lindgren)
Date: 2011-04-27 07:48:33
Also in:
linux-omap
* Nicolas Pitre [off-list ref] [110426 14:28]:
On Tue, 26 Apr 2011, Tony Lindgren wrote:quoted
Otherwise cache_clean_flush can overwrite some of the relocated area depending on where the kernel image gets loaded. This fixes booting on n900 after commit 6d7d0ae51574943bf571d269da3243257a2d15db (ARM: 6750/1: improvements to compressed/head.S).Gaaaah. Indeed.quoted
Thanks to Aaro Koskinen [off-list ref] for debugging the address of the relocated area that gets corrupted, and to Nicolas Pitre [off-list ref] for the other uncompress related fixes. Signed-off-by: Tony Lindgren <tony@atomide.com>I think there could be a better fix yet. Could you test this patch:
Cool that works too and avoids using the stack, so that's a better fix: Tested-by: Tony Lindgren <tony@atomide.com>