mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-14 04:46:01 +01:00
common/memsize.c: Fix get_effective_memsize() to always check for CONFIG_MAX_MEM_MAPPED
CONFIG_MAX_MEM_MAPPED when defined specifies upper memory mapped limit. So check for it always, and not only when CONFIG_VERY_BIG_RAM is defined. Signed-off-by: Pali Rohár <pali@kernel.org>
This commit is contained in:
parent
4057d64fae
commit
7210e457d5
@ -94,7 +94,7 @@ long get_ram_size(long *base, long maxsize)
|
|||||||
|
|
||||||
phys_size_t __weak get_effective_memsize(void)
|
phys_size_t __weak get_effective_memsize(void)
|
||||||
{
|
{
|
||||||
#ifndef CONFIG_VERY_BIG_RAM
|
#ifndef CONFIG_MAX_MEM_MAPPED
|
||||||
return gd->ram_size;
|
return gd->ram_size;
|
||||||
#else
|
#else
|
||||||
/* limit stack to what we can reasonable map */
|
/* limit stack to what we can reasonable map */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user