summaryrefslogtreecommitdiff
path: root/arch/blackfin/lib
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-12-24 18:19:25 (GMT)
committerMike Frysinger <vapier@gentoo.org>2011-04-08 04:44:26 (GMT)
commit05e7825e49586edc5cb42fa785d7cebe7bfe1de6 (patch)
treeba73d9ac5de5527d0d434cd0cd067fda8477fa77 /arch/blackfin/lib
parent164d04f4fcfd6f38c66961cdda018b4a742971c5 (diff)
downloadu-boot-fsl-qoriq-05e7825e49586edc5cb42fa785d7cebe7bfe1de6.tar.xz
Blackfin: only check for os log when we have external memory
If the part has no external memory configured, then there will be no os log for us to check, and any attempt to access that memory will trigger hardware errors. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/lib')
-rw-r--r--arch/blackfin/lib/board.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/blackfin/lib/board.c b/arch/blackfin/lib/board.c
index 47d487f..362b8c4 100644
--- a/arch/blackfin/lib/board.c
+++ b/arch/blackfin/lib/board.c
@@ -390,7 +390,7 @@ void board_init_r(gd_t * id, ulong dest_addr)
post_run(NULL, POST_RAM | post_bootmode_get(0));
#endif
- if (bfin_os_log_check()) {
+ if (CONFIG_MEM_SIZE && bfin_os_log_check()) {
puts("\nLog buffer from operating system:\n");
bfin_os_log_dump();
puts("\n");