Message ID | 20220909153246.8455-2-pali@kernel.org |
---|---|
State | Accepted |
Commit | 7210e457d5d166b4409bde402fd95a99e87cdfc5 |
Delegated to: | Tom Rini |
Headers | show |
Series | Support for 4 GB DDR modules for 32-bit U-Boot builds | expand |
On Fri, Sep 09, 2022 at 05:32:38PM +0200, Pali Rohár wrote: > 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> For the series, applied to u-boot/next, thanks!
diff --git a/common/memsize.c b/common/memsize.c index d5d13d51bf1f..31884acca0df 100644 --- a/common/memsize.c +++ b/common/memsize.c @@ -94,7 +94,7 @@ long get_ram_size(long *base, long maxsize) phys_size_t __weak get_effective_memsize(void) { -#ifndef CONFIG_VERY_BIG_RAM +#ifndef CONFIG_MAX_MEM_MAPPED return gd->ram_size; #else /* limit stack to what we can reasonable map */
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> --- common/memsize.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)