[PATCH] ARM: PJ4: move coprocessor register access sequences to iwmmxt.S

Stephen Boyd sboyd at codeaurora.org
Fri Nov 13 10:48:07 PST 2015


On 11/13, Ard Biesheuvel wrote:
> The PJ4 inline asm sequences in pj4-cp0.c cannot be built in Thumb-2 mode,
> due to the way it performs arithmetic on the program counter, so it is
> built in ARM mode instead. However, building C files in ARM mode under
> CONFIG_THUMB2_KERNEL is problematic, since the instrumentation performed
> by subsystems like ftrace does not expect having to deal with interworking
> branches.
> 
> So instead, revert to building pj4-cp0.c in Thumb-2 mode, and move the
> offending sequence to iwmmxt.S, which is not instrumented anyway, and is
> already built in ARM mode unconditionally.
> 
> Reported-by: Stephen Boyd <sboyd at codeaurora.org>
> Signed-off-by: Ard Biesheuvel <ard.biesheuvel at linaro.org>
> ---

Tested-by: Stephen Boyd <sboyd at codeaurora.org>

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project



More information about the linux-arm-kernel mailing list