From patchwork Wed Sep 18 13:15:20 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 20435 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 E979726114 for ; Wed, 18 Sep 2013 13:15:33 +0000 (UTC) Received: by mail-yh0-f72.google.com with SMTP id z20sf7399140yhz.7 for ; Wed, 18 Sep 2013 06:15:33 -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=TG0Gx0midnqqvBsqFu0oSX7rdBGCK6ayKrR3phZz1iQ=; b=Uhi5SH4OCI7TdAQIoshQMjWQAx0aZGX9bV+CYMNS5t1/2JlGJ2TORVvrGMcnCOkGT9 nppIA3Uf2LEtvP4kh6J0LtjDrsPdHscEdSLjNKvOHtgPyivqjx21Z9Bi+06trk4WEigj HrN1y0LMwrkzdwQY+yHBiFwaj8s2Vdy227EENB93LakgsUBWsrPC2rByeRlCIG7Qa9Nz Su8icE1jrXriHIKtG4+QJ0bYVOIkDngT/Ta+IGsem4RsrMfbqwkueqILycqVJQrxKyhk BrX4wkohzxnqXk9dvKhbYMOi8K+ALF17sNmraff1kuyTUT33nMXEzOf1LUjM89uyIz98 dYSg== X-Gm-Message-State: ALoCoQk+0PWU3MYHBEwPegDzzH9B8L8WWcEdOSrQVOLupTYR4+jyYT8UXvlCa9qfHIdHexy/ldJm X-Received: by 10.236.198.197 with SMTP id v45mr14545104yhn.26.1379510133723; Wed, 18 Sep 2013 06:15:33 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.24.172 with SMTP id v12ls3302578qef.91.gmail; Wed, 18 Sep 2013 06:15:33 -0700 (PDT) X-Received: by 10.52.119.139 with SMTP id ku11mr47073vdb.42.1379510133589; Wed, 18 Sep 2013 06:15:33 -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 o5si499560vdw.89.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 18 Sep 2013 06:15:33 -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 q14so5394801vbe.27 for ; Wed, 18 Sep 2013 06:15:33 -0700 (PDT) X-Received: by 10.221.64.17 with SMTP id xg17mr37825953vcb.5.1379510133511; Wed, 18 Sep 2013 06:15:33 -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 u4csp217407vcz; Wed, 18 Sep 2013 06:15:32 -0700 (PDT) X-Received: by 10.14.220.195 with SMTP id o43mr3451332eep.57.1379510132067; Wed, 18 Sep 2013 06:15:32 -0700 (PDT) Received: from mail-ea0-f172.google.com (mail-ea0-f172.google.com [209.85.215.172]) by mx.google.com with ESMTPS id x7si1780377eeo.157.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 18 Sep 2013 06:15:32 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.215.172 is neither permitted nor denied by best guess record for domain of julien.grall@linaro.org) client-ip=209.85.215.172; Received: by mail-ea0-f172.google.com with SMTP id r16so3474527ead.3 for ; Wed, 18 Sep 2013 06:15:30 -0700 (PDT) X-Received: by 10.14.210.195 with SMTP id u43mr2105858eeo.80.1379510130664; Wed, 18 Sep 2013 06:15:30 -0700 (PDT) Received: from belegaer.uk.xensource.com. ([185.25.64.249]) by mx.google.com with ESMTPSA id n48sm2689190eeg.17.1969.12.31.16.00.00 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 18 Sep 2013 06:15:30 -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 v3 4/6] xen/arm: Fix assert in send_SGI_one Date: Wed, 18 Sep 2013 14:15:20 +0100 Message-Id: <1379510122-9467-5-git-send-email-julien.grall@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1379510122-9467-1-git-send-email-julien.grall@linaro.org> References: <1379510122-9467-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 4061691..9b7457a 100644 --- a/xen/arch/arm/gic.c +++ b/xen/arch/arm/gic.c @@ -471,7 +471,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); }