Dave Martin e2ccba4908 ARM: 7897/1: kexec: Use the right ISA for relocate_new_kernel
Copying a function with memcpy() and then trying to execute the
result isn't trivially portable to Thumb.

This patch modifies the kexec soft restart code to copy its
assembler trampoline relocate_new_kernel() using fncpy() instead,
so that relocate_new_kernel can be in the same ISA as the rest of
the kernel without problems.

Signed-off-by: Dave Martin <Dave.Martin@arm.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Reported-by: Taras Kondratiuk <taras.kondratiuk@linaro.org>
Tested-by: Taras Kondratiuk <taras.kondratiuk@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2013-11-30 22:21:02 +00:00
..
2013-09-06 13:30:06 -07:00
2013-03-03 22:54:18 +00:00
2012-03-28 18:30:01 +01:00
2012-03-24 09:38:56 +00:00
2013-05-21 14:24:11 +00:00
2013-10-19 20:46:33 +01:00
2013-10-19 20:46:33 +01:00
2013-05-05 00:07:22 -04:00