[PATCH v2] ARM: zImage: add support for ARMv7-M
Joachim Eastwood
manabian at gmail.com
Tue Sep 23 10:41:43 PDT 2014
On 23 September 2014 18:33, Catalin Marinas <catalin.marinas at arm.com> wrote:
> On Fri, Sep 19, 2014 at 06:22:47PM +0100, Joachim Eastwood wrote:
>> .align
>> - .arm @ Always enter in ARM state
>> + AR_CLASS( .arm ) @ Always enter in ARM state for AR class
>
> Nitpick: A/R class (or classes).
Sure.
>> +#elif defined(CONFIG_CPU_V7M)
>> + ldr r9, =0xe000ed00 @ CPUID register address
>
> Another nitpick: can you use some macro? We define them in
> arch/arm/include/asm/v7m.h, so you could write the above as (untested):
>
> ldr r9, =BASEADDR_V7M_SCB + V7M_SCB_CPUID
I'll use the version from head-nommu.S, which does this:
ldr r9, =BASEADDR_V7M_SCB
ldr r9, [r9, V7M_SCB_CPUID]
I'll send out an updated patch soon.
regards
Joachim Eastwood
More information about the linux-arm-kernel
mailing list