From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Chou Date: Fri, 6 Nov 2015 09:30:54 +0800 Subject: [U-Boot] [PATCH 2/2] nios2: trim CONFIG_SYS_MEMTEST_END In-Reply-To: <1446615011-30320-2-git-send-email-thomas@wytron.com.tw> References: <1446615011-30320-1-git-send-email-thomas@wytron.com.tw> <1446615011-30320-2-git-send-email-thomas@wytron.com.tw> Message-ID: <563C02CE.9010304@wytron.com.tw> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 2015?11?04? 13:30, Thomas Chou wrote: > Trim CONFIG_SYS_MEMTEST_END location. > > CONFIG_SYS_MONITOR_LEN > Reserving 256k for U-Boot at: d7fc0000 > CONFIG_ENV_SIZE > CONFIG_SYS_MALLOC_LEN > Reserving 256k for malloc() at: d7f80000 > 0x10000 for the rest > Reserving 68 Bytes for Board Info at: d7f7ffbc > Reserving 208 Bytes for Global Data at: d7f7feec > Reserving 12000 Bytes for FDT at: d7f7d00c > Stack > > Signed-off-by: Thomas Chou > --- > include/configs/nios2-generic.h | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > Applied to u-boot-nios. > diff --git a/include/configs/nios2-generic.h b/include/configs/nios2-generic.h > index 9a01b22..4569de8 100644 > --- a/include/configs/nios2-generic.h > +++ b/include/configs/nios2-generic.h > @@ -96,7 +96,10 @@ > 16) /* Print buf size */ > #define CONFIG_SYS_LOAD_ADDR CONFIG_SYS_SDRAM_BASE > #define CONFIG_SYS_MEMTEST_START CONFIG_SYS_SDRAM_BASE > -#define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_INIT_SP - 0x20000) > +#define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_MONITOR_BASE - \ > + CONFIG_ENV_SIZE - \ > + CONFIG_SYS_MALLOC_LEN - \ > + 0x10000) > #define CONFIG_CMDLINE_EDITING > #define CONFIG_CMD_GPIO > >