]> git.sur5r.net Git - u-boot/commitdiff
board_f: Don't require CONFIG_SYS_MONITOR_BASE
authorSimon Glass <sjg@chromium.org>
Sun, 15 May 2016 00:49:28 +0000 (18:49 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 27 May 2016 19:39:51 +0000 (15:39 -0400)
Allow this to be unset, such that gd->mon_len is invalid. This seems to be
what the sh architecture does.

Signed-off-by: Simon Glass <sjg@chromium.org>
common/board_f.c

index 109025a68d656d2222b7619c5cecaf4948758c1c..d405b5b407e817677afcea7f626c44c2c9c16d23 100644 (file)
@@ -274,7 +274,7 @@ static int setup_mon_len(void)
        gd->mon_len = CONFIG_SYS_MONITOR_LEN;
 #elif defined(CONFIG_NDS32)
        gd->mon_len = (ulong)(&__bss_end) - (ulong)(&_start);
-#else
+#elif defined(CONFIG_SYS_MONITOR_BASE)
        /* TODO: use (ulong)&__bss_end - (ulong)&__text_start; ? */
        gd->mon_len = (ulong)&__bss_end - CONFIG_SYS_MONITOR_BASE;
 #endif