diff options
author | Dave Martin <[email protected]> | 2012-10-16 11:54:00 +0100 |
---|---|---|
committer | Russell King <[email protected]> | 2012-10-18 11:03:34 +0100 |
commit | 153cd8e839b5729358d4e5c3371e7509ee5ac96a (patch) | |
tree | 627a7dae9d293350f7147b111e657929d75926bd /tools/perf/util/trace-event-scripting.c | |
parent | ddffeb8c4d0331609ef2581d84de4d763607bd37 (diff) |
ARM: 7553/1: proc-v7: Ensure correct instruction set after cpu_reset
Because mov pc,<Rn> never switches instruction set when executed in
Thumb code, Thumb-2 kernels will silently execute the target code
after cpu_reset as Thumb code, even if the passed code pointer
denotes ARM (bit 0 clear).
This patch uses bx instead, ensuring the correct instruction set
for the target code.
Thumb code in the kernel is not supported prior to ARMv7, so other
CPUs are not affected.
Signed-off-by: Dave Martin <[email protected]>
Acked-by: Will Deacon <[email protected]>
Acked-by: Nicolas Pitre <[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