Re: [PATCH] ARM: Fix bad SP address after relocating kernel
authorNicolas Pitre <nicolas.pitre@linaro.org>
Wed, 27 Apr 2011 13:21:55 +0000 (06:21 -0700)
committerTony Lindgren <tony@atomide.com>
Wed, 27 Apr 2011 13:21:55 +0000 (06:21 -0700)
On Tue, 26 Apr 2011, Tony Lindgren wrote:

> 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.

> Thanks to Aaro Koskinen <aaro.koskinen@nokia.com> for debugging
> the address of the relocated area that gets corrupted, and to
> Nicolas Pitre <nicolas.pitre@linaro.org> 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:


No differences found