u-boot-brain/test/lib
Simon Goldschmidt 4cc8af8037 lib: lmb: extend lmb for checks at load time
This adds two new functions, lmb_alloc_addr and
lmb_get_unreserved_size.

lmb_alloc_addr behaves like lmb_alloc, but it tries to allocate a
pre-specified address range. Unlike lmb_reserve, this address range
must be inside one of the memory ranges that has been set up with
lmb_add.

lmb_get_unreserved_size returns the number of bytes that can be
used up to the next reserved region or the end of valid ram. This
can be 0 if the address passed is reserved.

Added test for these new functions.

Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
2019-01-16 16:37:04 -05:00
..
hexdump.c test: hexdump: fix misplaced return 2018-12-12 12:14:21 -05:00
lmb.c lib: lmb: extend lmb for checks at load time 2019-01-16 16:37:04 -05:00
Makefile test: add test for lib/lmb.c 2019-01-16 16:14:46 -05:00