From patchwork Thu Sep 26 11:09:39 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 20589 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qe0-f71.google.com (mail-qe0-f71.google.com [209.85.128.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A21AD24687 for ; Thu, 26 Sep 2013 11:10:26 +0000 (UTC) Received: by mail-qe0-f71.google.com with SMTP id a11sf824078qen.6 for ; Thu, 26 Sep 2013 04:10:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version: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=Pwcc18OocjRX4jrGadmbf44mnXtNvcyb014lD2NpKOU=; b=FzZHCjk9qgvn0dZhe+D/4L5O2pjuzdoQuEFO9eP5jQ3Vq8/+NEzGY31vgam4RiHB3T DCECqZDZdbBLpMZNcuTGo4feKQkLAOuwBn7ns0gVV/Hgd85rUMtOfrip3dKFJ5K+r1NP TTbsYmaY2VdcbL5orY7MdPX3d2A7s9rtgLXvDXoZb/5G1i35CJd9QRT9Tr8TEGw422G1 hKFhZyolFeuBep4ohAnvsU0Y4ncGGYBS8+xIadXJHa3MWi80FSWz0WIIK6nQd+UYv0Hx 4naiyAWZcYB0TP2rMGZjN+arXhLAsglCmYkVbNKqyUlVkGABJB4FswmcMs2hkBdKYWBC k/aw== X-Gm-Message-State: ALoCoQnjVX6fn0bkwGAjrP/OQO75TMDnxX00sYgdG/r7lFq1dhNoz4BVvZixBAFSdbPgHOsPqyI2 X-Received: by 10.236.73.164 with SMTP id v24mr61930yhd.24.1380193826463; Thu, 26 Sep 2013 04:10:26 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.71.231 with SMTP id y7ls853954qeu.39.gmail; Thu, 26 Sep 2013 04:10:26 -0700 (PDT) X-Received: by 10.220.15.132 with SMTP id k4mr112445vca.45.1380193826361; Thu, 26 Sep 2013 04:10:26 -0700 (PDT) Received: from mail-vb0-f54.google.com (mail-vb0-f54.google.com [209.85.212.54]) by mx.google.com with ESMTPS id o5si243616vdw.128.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 26 Sep 2013 04:10:26 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.54 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.54; Received: by mail-vb0-f54.google.com with SMTP id q14so694792vbe.41 for ; Thu, 26 Sep 2013 04:09:56 -0700 (PDT) X-Received: by 10.221.26.4 with SMTP id rk4mr143649vcb.70.1380193796264; Thu, 26 Sep 2013 04:09:56 -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 u4csp359570vcz; Thu, 26 Sep 2013 04:09:55 -0700 (PDT) X-Received: by 10.180.183.180 with SMTP id en20mr26807687wic.18.1380193795379; Thu, 26 Sep 2013 04:09:55 -0700 (PDT) Received: from mail-we0-f178.google.com (mail-we0-f178.google.com [74.125.82.178]) by mx.google.com with ESMTPS id g10si5802610wiw.46.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 26 Sep 2013 04:09:55 -0700 (PDT) Received-SPF: neutral (google.com: 74.125.82.178 is neither permitted nor denied by best guess record for domain of julien.grall@linaro.org) client-ip=74.125.82.178; Received: by mail-we0-f178.google.com with SMTP id u57so981965wes.9 for ; Thu, 26 Sep 2013 04:09:54 -0700 (PDT) X-Received: by 10.194.240.129 with SMTP id wa1mr282634wjc.31.1380193794731; Thu, 26 Sep 2013 04:09:54 -0700 (PDT) Received: from belegaer.uk.xensource.com. ([185.25.64.249]) by mx.google.com with ESMTPSA id q5sm2409641wiz.3.1969.12.31.16.00.00 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 26 Sep 2013 04:09:54 -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 v5 5/7] xen/arm: Fix assert in send_SGI_one Date: Thu, 26 Sep 2013 12:09:39 +0100 Message-Id: <1380193781-17474-6-git-send-email-julien.grall@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1380193781-17474-1-git-send-email-julien.grall@linaro.org> References: <1380193781-17474-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.54 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 Acked-by: Ian Campbell --- 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 05685cd..74575cd 100644 --- a/xen/arch/arm/gic.c +++ b/xen/arch/arm/gic.c @@ -477,7 +477,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); }