mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-19 08:28:51 +09:00
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>
This commit is contained in:
parent
aedb468309
commit
2fddd44464
@ -136,13 +136,13 @@
|
|||||||
#define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_SDRAM_BASE + 0x1000)
|
#define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_SDRAM_BASE + 0x1000)
|
||||||
|
|
||||||
/* global pointer */
|
/* 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 */
|
/* start of global data */
|
||||||
#define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_SDRAM_BASE + CONFIG_SYS_SDRAM_SIZE - CONFIG_SYS_GBL_DATA_SIZE)
|
#define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_SDRAM_BASE + CONFIG_SYS_SDRAM_SIZE - CONFIG_SYS_GBL_DATA_SIZE)
|
||||||
|
|
||||||
/* monitor code */
|
/* monitor code */
|
||||||
#define SIZE 0x40000
|
#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_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_MONITOR_END (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN)
|
||||||
#define CONFIG_SYS_MALLOC_LEN SIZE
|
#define CONFIG_SYS_MALLOC_LEN SIZE
|
||||||
|
Loading…
Reference in New Issue
Block a user