[PATCH v4 2/8] ARM: kexec: ensure new kernel is entered in ARM state

Will Deacon will.deacon at arm.com
Wed Aug 24 07:13:28 EDT 2011


On Wed, Aug 24, 2011 at 02:28:12AM +0100, Nicolas Pitre wrote:
> On Tue, 23 Aug 2011, Will Deacon wrote:
> 
> > Commit 540b5738 ("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 so that we transition to ARM state if need be.
> 
> This will break kexec support on ARMv4 targets.  No idea if any ARMv4 
> target uses kexec though.

It's easy enough to sort out though, so I may as well fix the code in case
anybody wants to try kexec on ARMv4!

Thanks,

Will




More information about the linux-arm-kernel mailing list