[U-Boot] [PATCH v2 09/10] arm: ls102xa: Add basic support for LS1021AQDS board

York Sun yorksun at freescale.com
Wed Aug 6 20:11:36 CEST 2014


On 07/03/2014 12:24 AM, Alison Wang wrote:
> diff --git a/lib/lmb.c b/lib/lmb.c
> index 081e418..0903222 100644
> --- a/lib/lmb.c
> +++ b/lib/lmb.c
> @@ -295,7 +295,7 @@ phys_addr_t __lmb_alloc_base(struct lmb *lmb, phys_size_t size, ulong align, phy
>  		if (max_addr == LMB_ALLOC_ANYWHERE)
>  			base = lmb_align_down(lmbbase + lmbsize - size, align);
>  		else if (lmbbase < max_addr) {
> -			base = min(lmbbase + lmbsize, max_addr);
> +			base = min(lmbbase + lmbsize - 1, max_addr);
>  			base = lmb_align_down(base - size, align);
>  		} else
>  			continue;
> 

Alison,

You didn't mention the change to lmb.c. It looks like a bug fix.

York


More information about the U-Boot mailing list