From patchwork Wed Sep 11 11:59:42 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 19966 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f72.google.com (mail-yh0-f72.google.com [209.85.213.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 57A8D25E63 for ; Wed, 11 Sep 2013 11:59:54 +0000 (UTC) Received: by mail-yh0-f72.google.com with SMTP id z20sf10173403yhz.7 for ; Wed, 11 Sep 2013 04:59:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:x-gm-message-state:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=OcqYBgs3CtoNQ3nMjp2pyZq98b7tOVmQ6EyUrXrdYyU=; b=exsmLuvxk2LX0ZqEiFcaBnvgTDX+EaCmydzqCNburDlfg8AtMEMslW3ZC15pjQ8L1l aDA8tswgX6H5zNauEoYLdPeRFTmqHQby4/NqSfgTD3xhp9Vk6qUbI0v4hpa6gHqoeqwP bG5b6Zs8CV5G5a4X3elrney5TCRMV6aqY3yzYQ0HWwh0H8D0ItP6NKi6nqmvGXWPkZ91 u3DB5fBHZ+EUdTWD0jDP3yU0X82zpHUYZekGuER276ZY9QFNNR6JC3bjVdGbPkMcXnsx TgLafKPS449CuN7TcPZzz6Tmpyg+ka8CIkc6zk0YdLXEXmvgj4Dy62F1NHOQMf7a/dTb kE5A== X-Received: by 10.236.124.33 with SMTP id w21mr455158yhh.15.1378900794180; Wed, 11 Sep 2013 04:59:54 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.98.198 with SMTP id ek6ls198888qeb.45.gmail; Wed, 11 Sep 2013 04:59:54 -0700 (PDT) X-Received: by 10.220.174.200 with SMTP id u8mr945621vcz.6.1378900793976; Wed, 11 Sep 2013 04:59:53 -0700 (PDT) Received: from mail-vb0-f42.google.com (mail-vb0-f42.google.com [209.85.212.42]) by mx.google.com with ESMTPS id ee8si5891965vdc.15.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 11 Sep 2013 04:59:53 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.42 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.42; Received: by mail-vb0-f42.google.com with SMTP id e12so6016769vbg.15 for ; Wed, 11 Sep 2013 04:59:53 -0700 (PDT) X-Gm-Message-State: ALoCoQnwHKT4ORM/LhgSlVg/GidZEauNAEb1Qk0pLPBViQzEOIMmCr231RAX9apNPb0GupVvFGRj X-Received: by 10.58.119.233 with SMTP id kx9mr910385veb.3.1378900793889; Wed, 11 Sep 2013 04:59:53 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp52081vcz; Wed, 11 Sep 2013 04:59:53 -0700 (PDT) X-Received: by 10.15.41.77 with SMTP id r53mr1744791eev.64.1378900792677; Wed, 11 Sep 2013 04:59:52 -0700 (PDT) Received: from mail-ea0-f181.google.com (mail-ea0-f181.google.com [209.85.215.181]) by mx.google.com with ESMTPS id i5si4268679eeg.145.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 11 Sep 2013 04:59:52 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.215.181 is neither permitted nor denied by best guess record for domain of julien.grall@linaro.org) client-ip=209.85.215.181; Received: by mail-ea0-f181.google.com with SMTP id d10so4603581eaj.12 for ; Wed, 11 Sep 2013 04:59:52 -0700 (PDT) X-Received: by 10.15.100.198 with SMTP id bn46mr1710979eeb.11.1378900792169; Wed, 11 Sep 2013 04:59:52 -0700 (PDT) Received: from belegaer.uk.xensource.com. ([185.25.64.249]) by mx.google.com with ESMTPSA id p5sm39687866eeg.5.1969.12.31.16.00.00 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 11 Sep 2013 04:59:51 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xen.org Cc: stefano.stabellini@eu.citrix.com, ian.campbell@citrix.com, patches@linaro.org, Julien Grall Subject: [PATCH v2 4/6] xen/arm: Fix assert in send_SGI_one Date: Wed, 11 Sep 2013 12:59:42 +0100 Message-Id: <1378900784-16949-5-git-send-email-julien.grall@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1378900784-16949-1-git-send-email-julien.grall@linaro.org> References: <1378900784-16949-1-git-send-email-julien.grall@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: julien.grall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.42 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The GIC can handle maximum 8 cpus (0...7). The CPU id 7 is still valid. Signed-off-by: Julien Grall --- xen/arch/arm/gic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/arm/gic.c b/xen/arch/arm/gic.c index 7ea9ed6..88431c7 100644 --- a/xen/arch/arm/gic.c +++ b/xen/arch/arm/gic.c @@ -488,7 +488,7 @@ void send_SGI_mask(const cpumask_t *cpumask, enum gic_sgi sgi) void send_SGI_one(unsigned int cpu, enum gic_sgi sgi) { - ASSERT(cpu < 7); /* Targets bitmap only supports 8 CPUs */ + ASSERT(cpu < NR_GIC_CPU_IF); /* Targets bitmap only supports 8 CPUs */ send_SGI_mask(cpumask_of(cpu), sgi); }