[RFC PATCH 11/11] HACK! ARM: no, we don't enter in ARM

Uwe Kleine-König u.kleine-koenig at pengutronix.de
Sun Jan 22 06:13:37 EST 2012


... as a Cortex-M3 can only do Thumb-2 ...

Signed-off-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>
---
This probably needs a new Kconfig symbol as THUMB2_KERNEL doesn't have
the right meaning. Something like "CPU_THUMB_ONLY"?
---
 arch/arm/kernel/head-nommu.S |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/arch/arm/kernel/head-nommu.S b/arch/arm/kernel/head-nommu.S
index dba31af..bb94ce4 100644
--- a/arch/arm/kernel/head-nommu.S
+++ b/arch/arm/kernel/head-nommu.S
@@ -32,13 +32,14 @@
  * numbers for r1.
  *
  */
-	.arm
+
+	@.arm
 
 	__HEAD
 ENTRY(stext)
 
- THUMB(	adr	r9, BSYM(1f)	)	@ Kernel is always entered in ARM.
- THUMB(	bx	r9		)	@ If this is a Thumb-2 kernel,
+ @THUMB(	adr	r9, BSYM(1f)	)	@ Kernel is always entered in ARM.
+ @THUMB(	bx	r9		)	@ If this is a Thumb-2 kernel,
  THUMB(	.thumb			)	@ switch to Thumb now.
  THUMB(1:			)
 
-- 
1.7.8.3




More information about the linux-arm-kernel mailing list