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 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot