u-boot/test/lib
Simon Goldschmidt d67f33cf4e lmb: fix allocation at end of address range
The lmb code fails if base + size of RAM overflows to zero.

Fix this by calculating end as 'base + size - 1' instead of 'base + size'
where appropriate.

Added tests to assert this is fixed.

Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
2019-01-16 16:36:48 -05:00
..
hexdump.c test: hexdump: fix misplaced return 2018-12-12 12:14:21 -05:00
lmb.c lmb: fix allocation at end of address range 2019-01-16 16:36:48 -05:00
Makefile test: add test for lib/lmb.c 2019-01-16 16:14:46 -05:00