Skip to content
Commit 2874865c authored by Nicolas Pitre's avatar Nicolas Pitre Committed by Russell King
Browse files

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: default avatarNicolas Pitre <nico@linaro.org>
Reported-by: default avatarStephen Boyd <sboyd@codeurora.org>
Tested-by: default avatarStephen Boyd <sboyd@codeurora.org>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 15e7e5c1
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