]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 7065/1: kexec: ensure new kernel is entered in ARM state
authorWill Deacon <will.deacon@arm.com>
Fri, 26 Aug 2011 15:32:57 +0000 (16:32 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 28 Aug 2011 09:39:41 +0000 (10:39 +0100)
commitf5fc5e144fd3a12e4b566f532148580c23995712
tree9cec5232f51a023374a3ee66520ea7da056d9f32
parent4442d4dd79eaf3178695a5c827365e32e1d5de90
ARM: 7065/1: kexec: ensure new kernel is entered in ARM state

Commit aaf0b1c0 ("ARM: 6999/1: head, zImage: Always Enter the kernel in
ARM state") mandates that the kernel should be entered in ARM state.

If a Thumb-2 kernel kexecs a new kernel image, we need to ensure that
we change state when branching to the new code. This patch replaces a
mov pc, lr with a bx lr on Thumb-2 kernels so that we transition to ARM
state if need be.

Reviewed-by: Dave Martin <dave.martin@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/relocate_kernel.S