From 8fe7b29f9811322931f0192a56431edcf819d6b9 Mon Sep 17 00:00:00 2001
From: Graeme Smecher <graeme.smecher@mail.mcgill.ca>
Date: Mon, 7 Dec 2009 08:09:57 -0800
Subject: [PATCH] microblaze: Stop stack clobbering in microblaze-generic.

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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/configs/microblaze-generic.h b/include/configs/microblaze-generic.h
index b486c7753c8..9b1569a6d47 100644
--- a/include/configs/microblaze-generic.h
+++ b/include/configs/microblaze-generic.h
@@ -146,7 +146,7 @@
 #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
-- 
GitLab