]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
nios2: trim CONFIG_SYS_MEMTEST_END
authorThomas Chou <thomas@wytron.com.tw>
Wed, 4 Nov 2015 05:25:20 +0000 (13:25 +0800)
committerThomas Chou <thomas@wytron.com.tw>
Fri, 6 Nov 2015 04:56:46 +0000 (12:56 +0800)
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 <thomas@wytron.com.tw>
include/configs/nios2-generic.h

index f6871708dcb66cce8bf237cad371923ef88aa037..dbd39d6a58c120894b31ecd09ee1377e7e0c8c8a 100644 (file)
                                         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