Patchwork [U-Boot,1/2] mpc5200: a3m071/a4m2k: Fix problem with increased global_data struct

login
register
mail settings
Submitter Stefan Roese
Date April 24, 2013, 12:19 p.m.
Message ID <1366805986-30415-1-git-send-email-sr@denx.de>
Download mbox | patch
Permalink /patch/239180/
State Superseded
Delegated to: Wolfgang Denk
Headers show

Comments

Stefan Roese - April 24, 2013, 12:19 p.m.
The v2013.04 release has this patch set included:

5cb48582 "Add architecture-specific global data"

With this, the global_data struct is now common and new variables
have been added. Resulting in a bigger struct. Unfortunately the
currently allocated 128 bytes are just a bit too small for this
new struct. So lets increase the reserved space to solve this
issue.

Please note that this problem might hit some other platforms which
currently reserve a tight space of 128 bytes for the global_data
struct!

Signed-off-by: Stefan Roese <sr@denx.de>
---
 include/configs/a3m071.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Patch

diff --git a/include/configs/a3m071.h b/include/configs/a3m071.h
index 13f3226..b0264c2 100644
--- a/include/configs/a3m071.h
+++ b/include/configs/a3m071.h
@@ -121,8 +121,7 @@ 
 #define CONFIG_SYS_INIT_RAM_ADDR	MPC5XXX_SRAM
 #define CONFIG_SYS_INIT_RAM_END		MPC5XXX_SRAM_SIZE
 
-
-#define CONFIG_SYS_GBL_DATA_SIZE	128
+#define CONFIG_SYS_GBL_DATA_SIZE	256
 #define CONFIG_SYS_GBL_DATA_OFFSET	(CONFIG_SYS_INIT_RAM_END - \
 					 CONFIG_SYS_GBL_DATA_SIZE)
 #define CONFIG_SYS_INIT_SP_OFFSET	CONFIG_SYS_GBL_DATA_OFFSET