[PATCH 2/2] ARM: kexec: Fix crash_setup_regs() for ARMv7 and CONFIG_THUMB2_KERNEL

Catalin Marinas catalin.marinas at gmail.com
Wed Nov 17 08:26:02 EST 2010


On 17 November 2010 13:11, Mika Westerberg <mika.westerberg at iki.fi> wrote:
> On Tue, Nov 16, 2010 at 01:12:21PM +0000, Dave Martin wrote:
>>  * Fix kexec build failure with CONFIG_THUMB2_KERNEL.
>>
>>  * Avoids deprecated/forbidden sp and pc usage in for ARMv7 onwards,
>> retaining compatibility with older architecture versions.
>>
>>  * The pc value saved to newregs is now aligned on a predictable
>> instruction boundary.
>>
>> (stmia { ... pc } or str pc has implementation-defined results
>> in most versions of the ARM architecutre, and is prohibited
>> (unpredictable) in Thumb-2.)
>>
>>  * Switch to named inline asm arguments (else I get readily confused ...)
>>
>> The resulting code should be compatible with all architecture versions >= v3,
>> with or without CONFIG_THUMB2_KERNEL.
>>
>> Applies cleanly on v2.6.37-rc1.
>
> Quickly tested this and seems to work. So FWIW:
>
> Acked-by: Mika Westerberg <mika.westerberg at iki.fi>

It's more like Tested-by :)  (unless you reviewed it as well, though
there seems to be some confusion between Reviewed-by and Acked-by).

-- 
Catalin



More information about the linux-arm-kernel mailing list