]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfd8da403404b100c15d45e004831cd78128825c6
tree3a9f06764c84e8e5ca7da76e6cbe5f6bca0c2eb5
parent093f2c8d18e1125a63dddb4a90210e794af925e5
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