diff options
author | Dave Martin <[email protected]> | 2010-12-01 18:05:14 +0100 |
---|---|---|
committer | Russell King <[email protected]> | 2010-12-04 11:00:53 +0000 |
commit | cd849ae9cd291117c0f7e0e8d531ab62a906e308 (patch) | |
tree | a2aab9e0d500c87e3d0cccdfabde94ed000a369f /tools/perf/util/trace-event-scripting.c | |
parent | 0946b8c5c5982088a26da7ad99e8bcf57f972fb5 (diff) |
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 <[email protected]>
Tested-by: Mika Westerberg <[email protected]>
Signed-off-by: Dave Martin <[email protected]>
Acked-by: Catalin Marinas <[email protected]>
Signed-off-by: Russell King <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions