提交 d22336aa 编写于 作者: V Vikas Manocha 提交者: Tom Rini

arm: armv7m: clean up armv7m unified code compilation

unified syntax should be selected by config ARM_ASM_UNIFIED
Signed-off-by: NVikas Manocha <vikas.manocha@st.com>
上级 680223a2
...@@ -10,11 +10,6 @@ ...@@ -10,11 +10,6 @@
#ifndef ARMV7M_H #ifndef ARMV7M_H
#define ARMV7M_H #define ARMV7M_H
#if defined(__ASSEMBLY__)
.syntax unified
.thumb
#endif
/* armv7m fixed base addresses */ /* armv7m fixed base addresses */
#define V7M_SCS_BASE 0xE000E000 #define V7M_SCS_BASE 0xE000E000
#define V7M_NVIC_BASE (V7M_SCS_BASE + 0x0100) #define V7M_NVIC_BASE (V7M_SCS_BASE + 0x0100)
......
...@@ -8,9 +8,7 @@ ...@@ -8,9 +8,7 @@
#include <config.h> #include <config.h>
#include <asm-offsets.h> #include <asm-offsets.h>
#include <linux/linkage.h> #include <linux/linkage.h>
#ifdef CONFIG_CPU_V7M #include <asm/assembler.h>
#include <asm/armv7m.h>
#endif
/* /*
* This file handles the target-independent stages of the U-Boot * This file handles the target-independent stages of the U-Boot
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
*/ */
#include <asm-offsets.h> #include <asm-offsets.h>
#include <asm/assembler.h>
#include <config.h> #include <config.h>
#include <elf.h> #include <elf.h>
#include <linux/linkage.h> #include <linux/linkage.h>
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
*/ */
#include <config.h> #include <config.h>
#include <asm/armv7m.h> #include <asm/assembler.h>
#include <linux/linkage.h> #include <linux/linkage.h>
.type __hard_fault_entry, %function .type __hard_fault_entry, %function
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册