From: Tim Deegan Subject: Re: [PATCH 07/16] arm: avoid placing Xen over any modules. Date: Thu, 6 Sep 2012 13:01:59 +0100 Message-ID: <20120906120159.GG56463@ocelot.phlegethon.org> References: <1346678886.32462.9.camel@zakaz.uk.xensource.com> <1346679056-8108-7-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1346679056-8108-7-git-send-email-ian.campbell@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org At 13:30 +0000 on 03 Sep (1346679047), Ian Campbell wrote: > @@ -85,17 +126,28 @@ static paddr_t __init get_xen_paddr(void) > /* Find the highest bank with enough space. */ > for ( i = 0; i < mi->nr_banks; i++ ) > { > - if ( mi->bank[i].size >= min_size ) > + const struct membank *bank = &mi->bank[i]; > + paddr_t s, e; > + > + if ( bank->size >= min_size ) > { > - t = mi->bank[i].start + mi->bank[i].size - min_size; > - if ( t > paddr ) > - paddr = t; > + e = consider_modules(bank->start, bank->start + bank->size, > + min_size, XEN_PADDR_ALIGN, 0); > + if ( !e )continue; Missing newline. With that fixed, Acked-by: Tim Deegan