From: AlisonWang Date: Sun, 10 Aug 2014 22:40:17 -0700 (PDT) Subject: [U-Boot] [PATCH v2 09/10] arm: ls102xa: Add basic support for LS1021AQDS board In-Reply-To: <53E26FD8.7020604@freescale.com> References: <1404372264-2301-1-git-send-email-b18965@freescale.com> <1404372264-2301-10-git-send-email-b18965@freescale.com> <53E26FD8.7020604@freescale.com> Message-ID: <1407735617758-186445.post@n7.nabble.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi, York, 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. [Alison Wang] Yes, I will prepare a separate patch for it and add the commit message. Thanks. Best Regards, Alison Wang -- View this message in context: http://u-boot.10912.n7.nabble.com/PATCH-v2-0-9-arm-ls102xa-Add-Freescale-LS102xA-SoC-and-LS1021AQDS-TWR-board-support-tp183468p186445.html Sent from the U-Boot mailing list archive at Nabble.com.