[PATCH] ARM: trusted_foundations: Maintain CPU endianness
Dmitry Osipenko
digetx at gmail.com
Fri Mar 20 09:41:37 PDT 2015
20.03.2015 19:07, Stephen Warren пишет:
> On 03/20/2015 09:36 AM, Dmitry Osipenko wrote:
>> Convert CPU reset vector address to LE to support big-endian kernel.
>
> Naively this sounds a little odd; the value here is in a CPU register all the
> time, not in memory, so I'm not sure why endianness is relevant? Presumably the
> CPU doesn't end up byte-swapping values in registers when running in BE mode or
> it takes an SMC? If it does, why don't we need
> cpu_to_le32(TF_SET_CPU_BOOT_ADDR_SMC) too?
>
> Sorry if this is a silly question; I haven't followed any of the BE kernel patches.
You absolutely right. I goofed it by replacing 'smc' with 'str' without adding
reg reverse for BE when was testing and then blindly made patch. Please ignore
it and sorry for the noise.
--
Dmitry
More information about the linux-arm-kernel
mailing list