summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2015-12-08 14:34:13 +0100
committerMichal Simek <michal.simek@xilinx.com>2015-12-18 13:15:58 +0100
commit4fcd0b33c7a0db2e86cccdc1831db235a6bc1b2d (patch)
tree95c26c7acdf264153aa8e6192d1ad1eb542c4ef9 /include
parent94067580a5b8b7a7b393e8f38fac385e3f93d780 (diff)
downloadtalos-obmc-uboot-4fcd0b33c7a0db2e86cccdc1831db235a6bc1b2d.tar.gz
talos-obmc-uboot-4fcd0b33c7a0db2e86cccdc1831db235a6bc1b2d.zip
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 <michal.simek@xilinx.com>
Diffstat (limited to 'include')
-rw-r--r--include/configs/microblaze-generic.h3
1 files changed, 2 insertions, 1 deletions
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
OpenPOWER on IntegriCloud