linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH] ARM: kexec: Assemble relocate code in ARM mode
@ 2013-10-09 20:57 Taras Kondratiuk
  2013-10-10  9:02 ` Will Deacon
  2013-10-10 14:12 ` Dave Martin
  0 siblings, 2 replies; 7+ messages in thread
From: Taras Kondratiuk @ 2013-10-09 20:57 UTC (permalink / raw)
  To: linux-arm-kernel

In Thumb2 kernel (CONFIG_THUMB2_KERNEL) kexec's relocate code is assembled
in Thumb2 mode, but cpu_v7_reset() jumps to this code in ARM state,
because its address is page aligned and has 0 in LSB.

Assemble this code in ARM mode to fix the issue.

Signed-off-by: Taras Kondratiuk <taras.kondratiuk@linaro.org>
---
Based on v3.12-rc4

Cc: Dave Martin <dave.martin@linaro.org>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: linaro-kernel at lists.linaro.org
Cc: linux-arm-kernel at lists.infradead.org
---
 arch/arm/kernel/relocate_kernel.S |    1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/kernel/relocate_kernel.S b/arch/arm/kernel/relocate_kernel.S
index d0cdedf..a3af323 100644
--- a/arch/arm/kernel/relocate_kernel.S
+++ b/arch/arm/kernel/relocate_kernel.S
@@ -5,6 +5,7 @@
 #include <asm/kexec.h>
 
 	.globl relocate_new_kernel
+	.arm
 relocate_new_kernel:
 
 	ldr	r0,kexec_indirection_page
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 7+ messages in thread
[parent not found: <20131015152422.GC2312@localhost.localdomain>]

end of thread, other threads:[~2013-10-24 14:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-09 20:57 [RFC PATCH] ARM: kexec: Assemble relocate code in ARM mode Taras Kondratiuk
2013-10-10  9:02 ` Will Deacon
2013-10-10 13:44   ` Taras Kondratiuk
2013-10-10 14:12 ` Dave Martin
2013-10-10 20:36   ` Taras Kondratiuk
     [not found] <20131015152422.GC2312@localhost.localdomain>
2013-10-18 19:29 ` Taras Kondratiuk
2013-10-24 14:34   ` Dave Martin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).