diff options
author | Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com> | 2019-01-14 22:38:23 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-01-16 23:16:25 -0500 |
commit | f8878da5571e5a1170f9c49214be5bafbc1b23a4 (patch) | |
tree | 20fc239128010116c5034692afd9a82fb1ba0fa3 /doc | |
parent | a156c47e39ad7d007c88919103ee0ee131c6203b (diff) | |
download | u-boot-f8878da5571e5a1170f9c49214be5bafbc1b23a4.zip u-boot-f8878da5571e5a1170f9c49214be5bafbc1b23a4.tar.gz u-boot-f8878da5571e5a1170f9c49214be5bafbc1b23a4.tar.bz2 |
arm: bootm: fix sp detection at end of address range
This fixes 'arch_lmb_reserve()' for ARM that tries to detect in which
DRAM bank 'sp' is in.
This code failed if a bank was at the end of physical address range
(i.e. size + length overflowed to 0).
To fix this, calculate 'bank_end' as 'size + length - 1' so that such
banks end at 0xffffffff, not 0.
Fixes: 15751403b6 ("ARM: bootm: don't assume sp is in DRAM bank 0")
Reported-by: Frank Wunderlich <frank-w@public-files.de>
Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions