From: Michal Simek Date: Tue, 8 Dec 2015 13:34:13 +0000 (+0100) Subject: microblaze: Make room for malloc before ELF X-Git-Tag: v2016.01-rc3~17^2~5 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4fcd0b33c7a0db2e86cccdc1831db235a6bc1b2d;p=oweals%2Fu-boot.git 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 --- 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