summaryrefslogtreecommitdiff
path: root/include/configs/microblaze-generic.h
diff options
context:
space:
mode:
authorMichal Simek <monstr@monstr.eu>2009-08-19 08:10:08 +0200
committerMichal Simek <monstr@monstr.eu>2009-09-14 14:40:03 +0200
commit2fddd44464d02e0f3ade06dabe0e165835fa61f0 (patch)
tree5a8b1d9a645e760f122a764f07aee5928b90e6cf /include/configs/microblaze-generic.h
parentaedb4683097d3e5de8833f4a9e34664d3d2bd077 (diff)
downloadu-boot-imx-2fddd44464d02e0f3ade06dabe0e165835fa61f0.zip
u-boot-imx-2fddd44464d02e0f3ade06dabe0e165835fa61f0.tar.gz
u-boot-imx-2fddd44464d02e0f3ade06dabe0e165835fa61f0.tar.bz2
microblaze: Short size of global data and fix malloc size
If is full malloc area global, data are rewrite because there was bad size of malloc area. Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'include/configs/microblaze-generic.h')
-rw-r--r--include/configs/microblaze-generic.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/configs/microblaze-generic.h b/include/configs/microblaze-generic.h
index 72715f6..ca071a3 100644
--- a/include/configs/microblaze-generic.h
+++ b/include/configs/microblaze-generic.h
@@ -136,13 +136,13 @@
#define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_SDRAM_BASE + 0x1000)
/* global pointer */
-#define CONFIG_SYS_GBL_DATA_SIZE 0x1000 /* size of global data */
+#define CONFIG_SYS_GBL_DATA_SIZE 128 /* size of global data */
/* start of global data */
#define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_SDRAM_BASE + CONFIG_SYS_SDRAM_SIZE - CONFIG_SYS_GBL_DATA_SIZE)
/* monitor code */
#define SIZE 0x40000
-#define CONFIG_SYS_MONITOR_LEN SIZE
+#define CONFIG_SYS_MONITOR_LEN (SIZE - CONFIG_SYS_GBL_DATA_SIZE)
#define CONFIG_SYS_MONITOR_BASE (CONFIG_SYS_GBL_DATA_OFFSET - CONFIG_SYS_MONITOR_LEN)
#define CONFIG_SYS_MONITOR_END (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN)
#define CONFIG_SYS_MALLOC_LEN SIZE