From patchwork Fri Aug 30 13:30:31 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 19634 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qe0-f70.google.com (mail-qe0-f70.google.com [209.85.128.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 910BE24694 for ; Fri, 30 Aug 2013 13:30:47 +0000 (UTC) Received: by mail-qe0-f70.google.com with SMTP id a11sf2030286qen.1 for ; Fri, 30 Aug 2013 06:30:47 -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=Frv5LPC5+EzGFFejgsoSIjIP2NRcWsacxeg6DlGu888=; b=jH/u57yMkmlGgLoiM6IB6jWaipa4ydZ3Bg7DIQRBpz5W5WCP3E/1xl7xnrTIkKX2PH 7sMmS7YVDOf+Q9VglmgA6b5zBEpNMsbbv8jtNAttyxGZZi9VdPY5B92zuw6FuBq9hoMr ClFVGXeDR/MBjcBrqkmPP1gC0+mHLdeBx/x/c35kHYmAAKZYUVjwG703Vaz/pIh+pH37 QFXZdu8jcLhLXaUaMBT++ZE7VyJWbA26lYOclGdudLKGUHM0lSQg8N+Qf+eeANCPc85A 8WyGt5ttwPZDwBET3BIYS/mAQPRidX0i80ft261oDGkZUGjrlQg5+2fbTxKiUJxv0/um /0Rg== X-Received: by 10.236.163.67 with SMTP id z43mr3064057yhk.27.1377869447368; Fri, 30 Aug 2013 06:30:47 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.47.82 with SMTP id b18ls1285924qen.53.gmail; Fri, 30 Aug 2013 06:30:47 -0700 (PDT) X-Received: by 10.58.136.4 with SMTP id pw4mr8462006veb.10.1377869447227; Fri, 30 Aug 2013 06:30:47 -0700 (PDT) Received: from mail-vb0-f44.google.com (mail-vb0-f44.google.com [209.85.212.44]) by mx.google.com with ESMTPS id wk9si9645093vdb.146.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 30 Aug 2013 06:30:47 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.44 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.44; Received: by mail-vb0-f44.google.com with SMTP id e13so1299677vbg.31 for ; Fri, 30 Aug 2013 06:30:47 -0700 (PDT) X-Gm-Message-State: ALoCoQlzDXBlwDKa7LFvx2QEUxC6qTiG+eUwY5ThRx2UpS5nG5EOi4XvypXrv6OwQhONLCPrcgoY X-Received: by 10.52.171.38 with SMTP id ar6mr6343874vdc.22.1377869447151; Fri, 30 Aug 2013 06:30:47 -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 u4csp88953vcz; Fri, 30 Aug 2013 06:30:46 -0700 (PDT) X-Received: by 10.194.219.38 with SMTP id pl6mr1752504wjc.47.1377869446194; Fri, 30 Aug 2013 06:30:46 -0700 (PDT) Received: from mail-wg0-f53.google.com (mail-wg0-f53.google.com [74.125.82.53]) by mx.google.com with ESMTPS id lu10si4056634wjb.74.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 30 Aug 2013 06:30:46 -0700 (PDT) Received-SPF: neutral (google.com: 74.125.82.53 is neither permitted nor denied by best guess record for domain of julien.grall@linaro.org) client-ip=74.125.82.53; Received: by mail-wg0-f53.google.com with SMTP id n12so1601740wgh.20 for ; Fri, 30 Aug 2013 06:30:45 -0700 (PDT) X-Received: by 10.194.63.228 with SMTP id j4mr10835845wjs.34.1377869445645; Fri, 30 Aug 2013 06:30:45 -0700 (PDT) Received: from belegaer.uk.xensource.com. ([185.25.64.249]) by mx.google.com with ESMTPSA id o9sm4306202wiz.1.1969.12.31.16.00.00 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 30 Aug 2013 06:30:45 -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 5/7] xen/arm: Fix assert in send_SGI_one Date: Fri, 30 Aug 2013 14:30:31 +0100 Message-Id: <1377869433-15385-6-git-send-email-julien.grall@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1377869433-15385-1-git-send-email-julien.grall@linaro.org> References: <1377869433-15385-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.44 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 4f3a8a5..6dcefd7 100644 --- a/xen/arch/arm/gic.c +++ b/xen/arch/arm/gic.c @@ -481,7 +481,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); }