Re: [PATCH 1/2] ARM: Pass IFSR register to do_PrefetchAbort()

From: Kirill A. Shutemov
Date: Fri Sep 18 2009 - 11:09:01 EST


On Fri, Sep 18, 2009 at 5:52 PM, Aaro Koskinen <aaro.koskinen@xxxxxxxxx> wrote:
> Hello,
>
> Kirill A. Shutemov wrote:
>>>
>>> Â#ifdef CONFIG_CPU_PABRT_NOIFAR
>>> -# ifdef CPU_PABORT_HANDLER
>>> +# ifdef CPU_PABORT_HANDLER_IFAR
>>> Â# Âdefine MULTI_PABORT 1
>>> Â# else
>>> -# Âdefine CPU_PABORT_HANDLER(reg, insn) Â Â Â Âmov reg, insn
>>> +# Âdefine CPU_PABORT_HANDLER_IFAR(reg, insn) Â mov reg, insn
>>> +# Âdefine CPU_PABORT_HANDLER_IFSR(reg) Â Â Â Â mrc p15, 0, reg, cr5,
>>> cr0, 1
>>
>> It's incorrect. We have IFSR only on ARMv7.
>
> It seems my assumption on the availability of that register was wrong, but I
> think it's available at least on ARMv6, and also that IFAR can be
> optional...

I can't find anything in ARMv6-M Architecture Reference Manual by
keywords "ifar" or "ifsr".

>
> A.
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/