summaryrefslogtreecommitdiff
path: root/cpu/at32ap/exception.c
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2008-06-03 00:19:57 +0200
committerWolfgang Denk <wd@denx.de>2008-06-03 00:19:57 +0200
commit7a68389a231ac061ba2ffd628f86e15ed0545a7b (patch)
tree723fd35290b988810be6d417c21fa1949f25aae8 /cpu/at32ap/exception.c
parent7feb4d38ff1fdf8877f39447001ff9f6e93fa6bc (diff)
parenta8092c021d27f27f4b323b7d49979ca01b3fc19d (diff)
downloadu-boot-imx-7a68389a231ac061ba2ffd628f86e15ed0545a7b.zip
u-boot-imx-7a68389a231ac061ba2ffd628f86e15ed0545a7b.tar.gz
u-boot-imx-7a68389a231ac061ba2ffd628f86e15ed0545a7b.tar.bz2
Merge remote branch 'u-boot-avr32/master'
Diffstat (limited to 'cpu/at32ap/exception.c')
-rw-r--r--cpu/at32ap/exception.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpu/at32ap/exception.c b/cpu/at32ap/exception.c
index 0672685..dc9c300 100644
--- a/cpu/at32ap/exception.c
+++ b/cpu/at32ap/exception.c
@@ -111,7 +111,8 @@ 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 < CFG_SDRAM_BASE || regs->sp >= gd->stack_end)
+ if (regs->sp < (gd->stack_end - CONFIG_STACKSIZE)
+ || regs->sp >= gd->stack_end)
printf("\nStack pointer seems bogus, won't do stack dump\n");
else
dump_mem("\nStack: ", regs->sp, gd->stack_end);