From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Wed, 4 Mar 2015 14:19:58 +0100 Subject: [U-Boot] [PATCHv2 16/20] arm: socfpga: spl: add a malloc section in sram In-Reply-To: <1425313688-23595-17-git-send-email-dinguyen@opensource.altera.com> References: <1425313688-23595-1-git-send-email-dinguyen@opensource.altera.com> <1425313688-23595-17-git-send-email-dinguyen@opensource.altera.com> Message-ID: <201503041419.58689.marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Monday, March 02, 2015 at 05:28:04 PM, dinguyen at opensource.altera.com wrote: > From: Dinh Nguyen > > Signed-off-by: Dinh Nguyen > --- > arch/arm/cpu/armv7/socfpga/u-boot-spl.lds | 7 +++++++ > include/configs/socfpga_common.h | 1 + > 2 files changed, 8 insertions(+) > > diff --git a/arch/arm/cpu/armv7/socfpga/u-boot-spl.lds > b/arch/arm/cpu/armv7/socfpga/u-boot-spl.lds index 739f3f1..f87e951 100644 > --- a/arch/arm/cpu/armv7/socfpga/u-boot-spl.lds > +++ b/arch/arm/cpu/armv7/socfpga/u-boot-spl.lds > @@ -45,6 +45,13 @@ SECTIONS > __bss_end = .; > } >.sram > > + .malloc : > + { > + . = . + CONFIG_SPL_MALLOC_SIZE; > + . = ALIGN(8); > + __malloc_start = .; > + } >.sram > + > .stack : > { > . = . + CONFIG_SPL_STACK_SIZE; > diff --git a/include/configs/socfpga_common.h > b/include/configs/socfpga_common.h index 31c8961..5d1343a 100644 > --- a/include/configs/socfpga_common.h > +++ b/include/configs/socfpga_common.h > @@ -296,6 +296,7 @@ unsigned int cm_get_qspi_controller_clk_hz(void); > #define CONFIG_SYS_SPL_MALLOC_SIZE 256 > #define CONFIG_SPL_MAX_SIZE (64 * 1024) > #define CONFIG_SPL_STACK_SIZE 0x1000 > +#define CONFIG_SPL_MALLOC_SIZE (5 * 1024) So this macro, CONFIG_SPL_MALLOC_SIZE, now contains the value which used to be in macro CONFIG_SYS_SPL_MALLOC_SIZE before patch 15/20 . In patch 15/20 , the macro CONFIG_SYS_SPL_MALLOC_SIZE was changed to be 256 . Things are starting to be really chaotic here and it's not really clear why these macros are really needed. Can we please clear this situation up ? Best regards, Marek Vasut