diff options
Diffstat (limited to 'arch/arm/lib')
-rw-r--r-- | arch/arm/lib/crt0.S | 7 | ||||
-rw-r--r-- | arch/arm/lib/relocate.S | 1 | ||||
-rw-r--r-- | arch/arm/lib/vectors.S | 8 | ||||
-rw-r--r-- | arch/arm/lib/vectors_m.S | 2 |
4 files changed, 11 insertions, 7 deletions
diff --git a/arch/arm/lib/crt0.S b/arch/arm/lib/crt0.S index 0decce2c5b..fe312db690 100644 --- a/arch/arm/lib/crt0.S +++ b/arch/arm/lib/crt0.S @@ -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 @@ -139,9 +137,6 @@ here: mov r2, #0x00000000 /* prepare zero to clear BSS */ clbss_l:cmp r0, r1 /* while not at end of BSS */ -#if defined(CONFIG_CPU_V7M) - itt lo -#endif strlo r2, [r0] /* clear 32-bit BSS word */ addlo r0, r0, #4 /* move to next */ blo clbss_l diff --git a/arch/arm/lib/relocate.S b/arch/arm/lib/relocate.S index c5b135db40..e5f7267be1 100644 --- a/arch/arm/lib/relocate.S +++ b/arch/arm/lib/relocate.S @@ -6,6 +6,7 @@ */ #include <asm-offsets.h> +#include <asm/assembler.h> #include <config.h> #include <elf.h> #include <linux/linkage.h> diff --git a/arch/arm/lib/vectors.S b/arch/arm/lib/vectors.S index d629cb1dc2..2ca6e2494a 100644 --- a/arch/arm/lib/vectors.S +++ b/arch/arm/lib/vectors.S @@ -19,7 +19,11 @@ * for the non-boot0 case or by a boot0-header. */ .macro ARM_VECTORS +#ifdef CONFIG_ARCH_K3 + ldr pc, _reset +#else b reset +#endif ldr pc, _undefined_instruction ldr pc, _software_interrupt ldr pc, _prefetch_abort @@ -94,6 +98,7 @@ _start: ************************************************************************* */ + .globl _reset .globl _undefined_instruction .globl _software_interrupt .globl _prefetch_abort @@ -102,6 +107,9 @@ _start: .globl _irq .globl _fiq +#ifdef CONFIG_ARCH_K3 +_reset: .word reset +#endif _undefined_instruction: .word undefined_instruction _software_interrupt: .word software_interrupt _prefetch_abort: .word prefetch_abort diff --git a/arch/arm/lib/vectors_m.S b/arch/arm/lib/vectors_m.S index d75e47734b..7d2d55c7f9 100644 --- a/arch/arm/lib/vectors_m.S +++ b/arch/arm/lib/vectors_m.S @@ -5,7 +5,7 @@ */ #include <config.h> -#include <asm/armv7m.h> +#include <asm/assembler.h> #include <linux/linkage.h> .type __hard_fault_entry, %function |