Browse Source

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>
Mike Frysinger 14 years ago
parent
commit
05e7825e49
1 changed files with 1 additions and 1 deletions
  1. 1 1
      arch/blackfin/lib/board.c

+ 1 - 1
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));
 		post_run(NULL, POST_RAM | post_bootmode_get(0));
 #endif
 #endif
 
 
-	if (bfin_os_log_check()) {
+	if (CONFIG_MEM_SIZE && bfin_os_log_check()) {
 		puts("\nLog buffer from operating system:\n");
 		puts("\nLog buffer from operating system:\n");
 		bfin_os_log_dump();
 		bfin_os_log_dump();
 		puts("\n");
 		puts("\n");