diff options
author | Dave Martin <dave.martin@linaro.org> | 2010-12-01 18:05:14 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-12-04 12:00:53 +0100 |
commit | cd849ae9cd291117c0f7e0e8d531ab62a906e308 (patch) | |
tree | a2aab9e0d500c87e3d0cccdfabde94ed000a369f /virt | |
parent | ARM: 6517/1: kexec: Add missing memory clobber to inline asm in crash_setup_r... (diff) | |
download | linux-cd849ae9cd291117c0f7e0e8d531ab62a906e308.tar.xz linux-cd849ae9cd291117c0f7e0e8d531ab62a906e308.zip |
ARM: 6518/1: kexec: Fix crash_setup_regs() for ARMv7 and CONFIG_THUMB2_KERNEL
* 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.
Reviewed-by: Will Deacon <will.deacon@arm.com>
Tested-by: Mika Westerberg <mika.westerberg@iki.fi>
Signed-off-by: Dave Martin <dave.martin@linaro.org>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions