From: Ian Campbell Subject: Re: [PATCH v6 3/5] xen/arm: support irq delivery to vcpu > 0 Date: Fri, 27 Jun 2014 16:42:43 +0100 Message-ID: <1403883763.3169.83.camel@kazak.uk.xensource.com> References: <1403541463-23734-3-git-send-email-stefano.stabellini@eu.citrix.com> <53A97E15.8010800@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <53A97E15.8010800@linaro.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall Cc: Stefano Stabellini , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Tue, 2014-06-24 at 14:33 +0100, Julien Grall wrote: > > + /* the IRQ needs to be an SPI */ > > + ASSERT(irq >= 32 && irq <= 1019); > > I would use gic_number_lines() rather than 1019 here. Or at least #define GIC_MAX_SPI 1019. Ian.