]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
zynq: zc770_xm010: Decrease initial malloc size
authorSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Fri, 8 Sep 2017 11:55:24 +0000 (17:25 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Fri, 8 Sep 2017 12:23:24 +0000 (14:23 +0200)
This patch decreases initial malloc size as keeping
it more decreases the init stack size and hence
causing exception due to stack overflow. Also 0x800
should be fine for malloc before relocation.
The initial stack pointer is calculated as below.
                                 CONFIG_SYS_INIT_RAM_SIZE - \
                                 GENERATED_GBL_DATA_SIZE)

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
configs/zynq_zc770_xm010_defconfig

index 253b1e7a0132273595d62eb580db1d22765951b0..9eef3259fa5a7197cfec426bbe1dc5f476357311 100644 (file)
@@ -1,6 +1,6 @@
 CONFIG_ARM=y
 CONFIG_ARCH_ZYNQ=y
-CONFIG_SYS_MALLOC_F_LEN=0x8000
+CONFIG_SYS_MALLOC_F_LEN=0x800
 CONFIG_SYS_TEXT_BASE=0x4000000
 CONFIG_DEFAULT_DEVICE_TREE="zynq-zc770-xm010"
 CONFIG_FIT=y