Commit c59518e1 authored by Marian Balakowicz's avatar Marian Balakowicz Committed by Wolfgang Denk

ppc: Cleanup get_effective_memsize() use

Removed duplicated effective memory size calculation code.
Signed-off-by: default avatarMarian Balakowicz <m8@semihalf.com>
parent 273c37d8
......@@ -453,18 +453,7 @@ void board_init_f (ulong bootflag)
*/
gd->ram_size -= CFG_MEM_TOP_HIDE;
#ifndef CONFIG_MAX_MEM_MAPPED
#define CONFIG_MAX_MEM_MAPPED (256 << 20)
#endif
#ifndef CONFIG_VERY_BIG_RAM
addr = CFG_SDRAM_BASE + get_effective_memsize();
#else
/* only allow stack below 256M */
addr = CFG_SDRAM_BASE +
(gd->ram_size > CONFIG_MAX_MEM_MAPPED) ?
CONFIG_MAX_MEM_MAPPED : get_effective_memsize();
#endif
#ifdef CONFIG_LOGBUFFER
#ifndef CONFIG_ALT_LB_ADDR
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment