arm: armv7m: clean up armv7m unified code compilation
authorVikas Manocha <vikas.manocha@st.com>
Fri, 31 Aug 2018 23:57:06 +0000 (16:57 -0700)
committerTom Rini <trini@konsulko.com>
Tue, 11 Sep 2018 01:19:33 +0000 (21:19 -0400)
unified syntax should be selected by config ARM_ASM_UNIFIED

Signed-off-by: Vikas Manocha <vikas.manocha@st.com>
arch/arm/include/asm/armv7m.h
arch/arm/lib/crt0.S
arch/arm/lib/relocate.S
arch/arm/lib/vectors_m.S

index 278f302cdb5668908126227a374db7481d2c3eee..ad67b4fa34e0c6409b6998a4e76125d722afd0df 100644 (file)
 #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)
index d7ff9f0e5f90942fe4ecc3578b2aba8a5759201f..fe312db69068b4e0d41eb0d9bafccc3b0e05b248 100644 (file)
@@ -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
index c5b135db40e4c79e3b7451745b888ff13e120da1..e5f7267be193e09db2db3e7b32ed7a1b93c2f09b 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include <asm-offsets.h>
+#include <asm/assembler.h>
 #include <config.h>
 #include <elf.h>
 #include <linux/linkage.h>
index d75e47734b7fbaa6aeb86070e5b92a019c64413e..7d2d55c7f9facfb3d54f966f866783e457b65a62 100644 (file)
@@ -5,7 +5,7 @@
  */
 
 #include <config.h>
-#include <asm/armv7m.h>
+#include <asm/assembler.h>
 #include <linux/linkage.h>
 
 .type __hard_fault_entry, %function