ARM: 6663/1: make Thumb2 kernel entry point more similar to the ARM one
authorNicolas Pitre <nico@fluxnic.net>
Sat, 12 Feb 2011 21:25:27 +0000 (22:25 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 23 Feb 2011 17:24:19 +0000 (17:24 +0000)
commitb11fe38883d1de76f2f847943e085a808f83f189
tree381973a579e681e69472a4ee8f12e17e227d99ef
parent74c25beeb30fa32badf575a908902cbdef4d4eb4
ARM: 6663/1: make Thumb2 kernel entry point more similar to the ARM one

Some installers would binary patch the kernel zImage to replace the
first few nops with custom instructions.  This breaks the Thumb2 kernel
as the mode switch is right at the beginning.  Let's move it towards the
end of the nop sequence instead.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/boot/compressed/head.S