From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Thu, 17 Jan 2019 17:44:30 -0500 Subject: [U-Boot] [U-Boot, v10, 05/10] lib: lmb: extend lmb for checks at load time In-Reply-To: <20190114213823.32486-6-simon.k.r.goldschmidt@gmail.com> References: <20190114213823.32486-6-simon.k.r.goldschmidt@gmail.com> Message-ID: <20190117224430.GC27429@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, Jan 14, 2019 at 10:38:18PM +0100, Simon Goldschmidt wrote: > 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. > > Signed-off-by: Simon Goldschmidt Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: