aboutsummaryrefslogtreecommitdiff
path: root/tools/ifdtool.c
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2023-01-07 22:55:26 +0100
committerTom Rini <trini@konsulko.com>2023-01-07 18:01:53 -0500
commitd1f4b090dd17ee11373859f2c91af94bf254af7a (patch)
treeb085c56447f8c18d3886a9a6d6fc0d3c183ad646 /tools/ifdtool.c
parentbe914b00df4aeb6c115b412313f31daedab75fb5 (diff)
downloadu-boot-d1f4b090dd17ee11373859f2c91af94bf254af7a.zip
u-boot-d1f4b090dd17ee11373859f2c91af94bf254af7a.tar.gz
u-boot-d1f4b090dd17ee11373859f2c91af94bf254af7a.tar.bz2
common/memsize.c: Check for overflow in get_effective_memsize() only for mpc85xx
This reverts commit 777aaaa706bc ("common/memsize.c: Fix get_effective_memsize() to check for overflow") for non-mpc85xx platforms. The changes to this generic function, which is intended to help with 32bit platforms with large amounts of memory has unintended side effects (which in turn lead to boot failures) on other platforms which were previously functional. For now do overflow check only for powerpc mpc85xx platform. It is needed to prevent crashing of P1/P2 boards with 4GB DDR module in 32-bit mode. Fixes: 777aaaa706bc ("common/memsize.c: Fix get_effective_memsize() to check for overflow") Signed-off-by: Pali Rohár <pali@kernel.org>
Diffstat (limited to 'tools/ifdtool.c')
0 files changed, 0 insertions, 0 deletions