From 4fcd0b33c7a0db2e86cccdc1831db235a6bc1b2d Mon Sep 17 00:00:00 2001 From: Michal Simek Date: Tue, 8 Dec 2015 14:34:13 +0100 Subject: [PATCH] microblaze: Make room for malloc before ELF Create space below u-boot binary for early malloc. It means memory layout is stack grows down, space for early malloc, u-boot code. Signed-off-by: Michal Simek --- include/configs/microblaze-generic.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/configs/microblaze-generic.h b/include/configs/microblaze-generic.h index 06f6ed1fc0..a48c8d6094 100644 --- a/include/configs/microblaze-generic.h +++ b/include/configs/microblaze-generic.h @@ -121,7 +121,8 @@ #endif /* Stack location before relocation */ -#define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_TEXT_BASE +#define CONFIG_SYS_INIT_SP_OFFSET (CONFIG_SYS_TEXT_BASE - \ + CONFIG_SYS_MALLOC_F_LEN) /* * CFI flash memory layout - Example -- 2.25.1