summaryrefslogtreecommitdiff
path: root/arch/avr32
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2017-04-06 20:42:18 -0400
committerTom Rini <trini@konsulko.com>2017-04-06 20:42:18 -0400
commit01abae4d04868dede60947867699bf096a1831ff (patch)
tree36cf207784fb6d9b61b533bf6df7d1281a34745e /arch/avr32
parentd53ecad92f06d2e38a5cbc13af7473867c7fa277 (diff)
Remove various unused interrupt related code
With d53ecad92f06 some unused interrupt related code was removed. However all of these options are currently unused. Rather than migrate some of these options to Kconfig we just remove the code in question. The only related code changes here are that in some cases we use CONFIG_STACKSIZE in non-IRQ related context. In these cases we rename and move the value local to the code in question. Fixes: d53ecad92f06 ("Merge branch 'master' of git://git.denx.de/u-boot-sunxi") Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'arch/avr32')
-rw-r--r--arch/avr32/cpu/exception.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/avr32/cpu/exception.c b/arch/avr32/cpu/exception.c
index d6991f6668..22eab03b12 100644
--- a/arch/avr32/cpu/exception.c
+++ b/arch/avr32/cpu/exception.c
@@ -10,6 +10,8 @@
DECLARE_GLOBAL_DATA_PTR;
+#define STACKSIZE 2048
+
static const char * const cpu_modes[8] = {
"Application", "Supervisor", "Interrupt level 0", "Interrupt level 1",
"Interrupt level 2", "Interrupt level 3", "Exception", "NMI"
@@ -96,7 +98,7 @@ void do_unknown_exception(unsigned int ecr, struct pt_regs *regs)
printf("CPU Mode: %s\n", cpu_modes[mode]);
/* Avoid exception loops */
- if (regs->sp < (gd->start_addr_sp - CONFIG_STACKSIZE) ||
+ if (regs->sp < (gd->start_addr_sp - STACKSIZE) ||
regs->sp >= gd->start_addr_sp)
printf("\nStack pointer seems bogus, won't do stack dump\n");
else