From: Simon Glass Date: Sun, 15 May 2016 00:49:28 +0000 (-0600) Subject: board_f: Don't require CONFIG_SYS_MONITOR_BASE X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=b0b359536e2bcdf9e049e36a9ad5e4f7174bdc74;p=project%2Fbcm63xx%2Fu-boot.git board_f: Don't require CONFIG_SYS_MONITOR_BASE 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 --- diff --git a/common/board_f.c b/common/board_f.c index 109025a68d..d405b5b407 100644 --- a/common/board_f.c +++ b/common/board_f.c @@ -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