]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - common/cmd_log.c
bootm: Split out code from cmd_bootm.c
[karo-tx-uboot.git] / common / cmd_log.c
index 8164bdf4886460f535b9831da167ef6a90c66b97..38d0f5edfd7872d50af20b5e38173b0871c39f19 100644 (file)
@@ -52,7 +52,7 @@ static char *lbuf;
 
 unsigned long __logbuffer_base(void)
 {
-       return CONFIG_SYS_SDRAM_BASE + gd->ram_size - LOGBUFF_LEN;
+       return CONFIG_SYS_SDRAM_BASE + get_effective_memsize() - LOGBUFF_LEN;
 }
 unsigned long logbuffer_base(void)
 __attribute__((weak, alias("__logbuffer_base")));