diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2011-08-07 19:14:43 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-08-07 19:17:02 +0200 |
commit | 9fc98211ef0c7a6fa7ddde7b03f4d2fad763dd20 (patch) | |
tree | 7ccc8d91c98231e3fb4988172103521c71b7539d | |
parent | abcf935ee6270da536d8b355b92e013963062d7e (diff) | |
download | barebox-9fc98211ef0c7a6fa7ddde7b03f4d2fad763dd20.tar.gz barebox-9fc98211ef0c7a6fa7ddde7b03f4d2fad763dd20.tar.xz |
ARM: remove unused exception
The exception vector at 0x14 is not used on arm, so no need
to bind this address to a exception handler. Remove the
corresponding code
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | arch/arm/cpu/exceptions.S | 5 | ||||
-rw-r--r-- | arch/arm/cpu/interrupts.c | 13 | ||||
-rw-r--r-- | arch/arm/cpu/start.c | 2 |
3 files changed, 1 insertions, 19 deletions
diff --git a/arch/arm/cpu/exceptions.S b/arch/arm/cpu/exceptions.S index 4741bb8691..a87975529e 100644 --- a/arch/arm/cpu/exceptions.S +++ b/arch/arm/cpu/exceptions.S @@ -136,11 +136,6 @@ data_abort: bl do_data_abort .align 5 -.globl not_used -not_used: - get_bad_stack - bad_save_user_regs - bl do_not_used .globl irq .globl fiq diff --git a/arch/arm/cpu/interrupts.c b/arch/arm/cpu/interrupts.c index 5168921682..68b2931d09 100644 --- a/arch/arm/cpu/interrupts.c +++ b/arch/arm/cpu/interrupts.c @@ -173,19 +173,6 @@ void do_data_abort (struct pt_regs *pt_regs) } /** - * The CPU catches a not-used(?) abort. - * @param[in] pt_regs Register set content when the accident happens - * - * FIXME: What does it mean, why is reset the only solution? - */ -void do_not_used (struct pt_regs *pt_regs) -{ - printf ("not used\n"); - show_regs (pt_regs); - bad_mode (); -} - -/** * The CPU catches a fast interrupt request. * @param[in] pt_regs Register set content when the interrupt happens * diff --git a/arch/arm/cpu/start.c b/arch/arm/cpu/start.c index f20ce74aca..5e09300062 100644 --- a/arch/arm/cpu/start.c +++ b/arch/arm/cpu/start.c @@ -36,7 +36,7 @@ void __naked __section(.text_entry) exception_vectors(void) "ldr pc, =software_interrupt\n" /* software interrupt (SWI) */ "ldr pc, =prefetch_abort\n" /* prefetch abort */ "ldr pc, =data_abort\n" /* data abort */ - "ldr pc, =not_used\n" /* (reserved) */ + "1: bne 1b\n" /* (reserved) */ "ldr pc, =irq\n" /* irq (interrupt) */ "ldr pc, =fiq\n" /* fiq (fast interrupt) */ #else |