Skip to contentSkip to conversation

arm: armv7m: clean up armv7m unified code compilation

PATCH In review Vikas Manocha 2 participants 2 messages Aug 31, 2018 – Sep 11, 2018 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: armv7m: clean up armv7m unified code compilation

unified syntax should be selected by config ARM_ASM_UNIFIED

---
 arch/arm/include/asm/armv7m.h | 5 -----
 arch/arm/lib/crt0.S           | 4 +---
 arch/arm/lib/relocate.S       | 1 +
 arch/arm/lib/vectors_m.S      | 2 +-
 4 files changed, 3 insertions(+), 9 deletions(-)
arch/arm/include/asm/armv7m.h +0 -5
index 278f302..ad67b4f 100644
@@ -10,11 +10,6 @@
 #ifndef ARMV7M_H
 #define ARMV7M_H
 
-#if defined(__ASSEMBLY__)
-.syntax unified
-.thumb
-#endif
-
 /* armv7m fixed base addresses */
 #define V7M_SCS_BASE		0xE000E000
 #define V7M_NVIC_BASE		(V7M_SCS_BASE + 0x0100)
arch/arm/lib/crt0.S +1 -3
index d7ff9f0..fe312db 100644
@@ -8,9 +8,7 @@
 #include <config.h>
 #include <asm-offsets.h>
 #include <linux/linkage.h>
-#ifdef CONFIG_CPU_V7M
-#include <asm/armv7m.h>
-#endif
+#include <asm/assembler.h>
 
 /*
  * This file handles the target-independent stages of the U-Boot
arch/arm/lib/relocate.S +1 -0
index c5b135d..e5f7267 100644
@@ -6,6 +6,7 @@
  */
 
 #include <asm-offsets.h>
+#include <asm/assembler.h>
 #include <config.h>
 #include <elf.h>
 #include <linux/linkage.h>
arch/arm/lib/vectors_m.S +1 -1
index d75e477..7d2d55c 100644
@@ -5,7 +5,7 @@
  */
 
 #include <config.h>
-#include <asm/armv7m.h>
+#include <asm/assembler.h>
 #include <linux/linkage.h>
 
 .type __hard_fault_entry, %function
Signature · 1 line
2.7.4
#1 lore raw
Quoted 3 lines · Vikas Manocha

unified syntax should be selected by config ARM_ASM_UNIFIED

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180911/b1232e98/attachment.sig>