ARM: 7751/1: zImage: don't overwrite ourself with a page table
authorNicolas Pitre <nicolas.pitre@linaro.org>
Thu, 6 Jun 2013 04:13:48 +0000 (05:13 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 17 Jun 2013 08:27:05 +0000 (09:27 +0100)
commit2874865c1271cc8e8b663804e5de4bc0c36273e1
tree3a9f06764c84e8e5ca7da76e6cbe5f6bca0c2eb5
parent15e7e5c1ebf556cd620c9b091e121091ac760f6d
ARM: 7751/1: zImage: don't overwrite ourself with a page table

When zImage is loaded into RAM at a low address but TEXT_OFFSET
is set higher, we risk overwriting ourself with the page table
needed to turn on the cache as it is located relative to the relocation
address.  Let's defer the cache setup after relocation in that case.

Signed-off-by: Nicolas Pitre <nico@linaro.org>
Reported-by: Stephen Boyd <sboyd@codeurora.org>
Tested-by: Stephen Boyd <sboyd@codeurora.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/boot/compressed/head.S