]> git.sur5r.net Git - u-boot/blobdiff - arch/avr32/cpu/exception.c
stm32: Correct positioning of declaration
[u-boot] / arch / avr32 / cpu / exception.c
index d6991f6668d3326bfaf205719f9f421bbfff7f25..22eab03b12ca1b3f3e62d8d1c34ffaff6e4d5ddc 100644 (file)
@@ -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