microblaze: Stop stack clobbering in microblaze-generic.
authorGraeme Smecher <graeme.smecher@mail.mcgill.ca>
Mon, 7 Dec 2009 16:09:57 +0000 (08:09 -0800)
committerMichal Simek <monstr@monstr.eu>
Tue, 8 Dec 2009 07:51:42 +0000 (08:51 +0100)
A typo caused the stack and malloc regions to overlap, which prevented
mem_malloc_init() from returning. This commit makes the memory layout match
the example described in include/configs/microblaze-generic.h

Signed-off-by: Graeme Smecher <graeme.smecher@mail.mcgill.ca>
Signed-off-by: Michal Simek <monstr@monstr.eu>
include/configs/microblaze-generic.h

index b486c7753c8e699aca2690ae64d123d2e7c19a8d..9b1569a6d47c87d02f60018dff8d083d844b6132 100644 (file)
 #define        CONFIG_SYS_MALLOC_BASE          (CONFIG_SYS_MONITOR_BASE - CONFIG_SYS_MALLOC_LEN)
 
 /* stack */
-#define        CONFIG_SYS_INIT_SP_OFFSET       CONFIG_SYS_MONITOR_BASE
+#define        CONFIG_SYS_INIT_SP_OFFSET       CONFIG_SYS_MALLOC_BASE
 
 /*#define      RAMENV */
 #define        FLASH