[PATCH 04/19] ARM: set BE8 if LE in head code

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Wed Aug 28 06:21:46 EDT 2013


Dear Ben Dooks,

On Tue, 27 Aug 2013 22:38:14 +0100, Ben Dooks wrote:
> If we are booting in LE and compiled for BE8, then add code to
> set the state to bE8. Since the instruction stream is always LE,
> we do not need to do anything special to the instruction.
> 
> Also ensure that the secondary processors are started in the same mode.
> 
> Note, we do add about 20 bytes to the kernel image, but it seems easier
> to do this than adding another configuration to change.
> 
> Signed-off-by: Ben Dooks <ben.dooks at codethink.co.uk>
> 
> Conflicts:
> 	arch/arm/kernel/sleep.S

Those two lines probably shouldn't be there.

Thanks,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com



More information about the linux-arm-kernel mailing list