mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-11-29 14:41:26 +01:00
arm: Do not compile vector table when SYS_NO_VECTOR_TABLE is enabled
Vector table is not used when SYS_NO_VECTOR_TABLE is enabled. So do not compile it and reduce image size. Signed-off-by: Pali Rohár <pali@kernel.org>
This commit is contained in:
parent
372779abc3
commit
5165d2a04a
@ -24,6 +24,7 @@
|
|||||||
#else
|
#else
|
||||||
b reset
|
b reset
|
||||||
#endif
|
#endif
|
||||||
|
#if !CONFIG_IS_ENABLED(SYS_NO_VECTOR_TABLE)
|
||||||
ldr pc, _undefined_instruction
|
ldr pc, _undefined_instruction
|
||||||
ldr pc, _software_interrupt
|
ldr pc, _software_interrupt
|
||||||
ldr pc, _prefetch_abort
|
ldr pc, _prefetch_abort
|
||||||
@ -31,6 +32,7 @@
|
|||||||
ldr pc, _not_used
|
ldr pc, _not_used
|
||||||
ldr pc, _irq
|
ldr pc, _irq
|
||||||
ldr pc, _fiq
|
ldr pc, _fiq
|
||||||
|
#endif
|
||||||
.endm
|
.endm
|
||||||
|
|
||||||
|
|
||||||
@ -87,6 +89,7 @@ _start:
|
|||||||
ARM_VECTORS
|
ARM_VECTORS
|
||||||
#endif /* !defined(CONFIG_ENABLE_ARM_SOC_BOOT0_HOOK) */
|
#endif /* !defined(CONFIG_ENABLE_ARM_SOC_BOOT0_HOOK) */
|
||||||
|
|
||||||
|
#if !CONFIG_IS_ENABLED(SYS_NO_VECTOR_TABLE)
|
||||||
/*
|
/*
|
||||||
*************************************************************************
|
*************************************************************************
|
||||||
*
|
*
|
||||||
@ -118,6 +121,7 @@ _irq: .word irq
|
|||||||
_fiq: .word fiq
|
_fiq: .word fiq
|
||||||
|
|
||||||
.balignl 16,0xdeadbeef
|
.balignl 16,0xdeadbeef
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*************************************************************************
|
*************************************************************************
|
||||||
@ -131,6 +135,7 @@ _fiq: .word fiq
|
|||||||
|
|
||||||
#ifdef CONFIG_SPL_BUILD
|
#ifdef CONFIG_SPL_BUILD
|
||||||
|
|
||||||
|
#if !CONFIG_IS_ENABLED(SYS_NO_VECTOR_TABLE)
|
||||||
.align 5
|
.align 5
|
||||||
undefined_instruction:
|
undefined_instruction:
|
||||||
software_interrupt:
|
software_interrupt:
|
||||||
@ -141,6 +146,7 @@ irq:
|
|||||||
fiq:
|
fiq:
|
||||||
1:
|
1:
|
||||||
b 1b /* hang and never return */
|
b 1b /* hang and never return */
|
||||||
|
#endif
|
||||||
|
|
||||||
#else /* !CONFIG_SPL_BUILD */
|
#else /* !CONFIG_SPL_BUILD */
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user