diff options
author | Simon Glass <sjg@chromium.org> | 2016-05-14 18:49:28 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-05-27 15:39:51 -0400 |
commit | b0b359536e2bcdf9e049e36a9ad5e4f7174bdc74 (patch) | |
tree | 96c66997d5077b132004e0495b3f18d464ebf8e6 /common | |
parent | 89b199c3d4416e63d025e4927da8d4fde1de8b2a (diff) | |
download | u-boot-b0b359536e2bcdf9e049e36a9ad5e4f7174bdc74.tar.gz u-boot-b0b359536e2bcdf9e049e36a9ad5e4f7174bdc74.tar.bz2 u-boot-b0b359536e2bcdf9e049e36a9ad5e4f7174bdc74.zip |
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 <sjg@chromium.org>
Diffstat (limited to 'common')
-rw-r--r-- | common/board_f.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |