pj4 -marm breaks thumb ftrace

Ard Biesheuvel ard.biesheuvel at linaro.org
Thu Nov 12 07:50:41 PST 2015


On 12 November 2015 at 16:22, Nicolas Pitre <nicolas.pitre at linaro.org> wrote:
> On Thu, 12 Nov 2015, Ard Biesheuvel wrote:
>
[...]
>
> You might add __INIT here.
>
>> +ENTRY(pj4_cp_access_read)
>> +     mrc     p15, 0, r0, c1, c0, 2
>> +     ret     lr
>> +ENDPROC(pj4_cp_access_read)
>> +
>> +ENTRY(pj4_cp_access_write)
>> +     mcr     p15, 0, r0, c1, c0, 2
>> +     mrc     p15, 0, r0, c1, c0, 2
>> +     mov     r0, r0
>> +     sub     pc, pc, #4
>> +     ret     lr
>> +ENDPROC(pj4_cp_access_write)
>> +
>
> And __FINIT here.
>

OK, I will do that. Thanks for the tip.

-- 
Ard.



More information about the linux-arm-kernel mailing list