xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Julien Grall <julien.grall@linaro.org>
To: xen-devel@lists.xen.org
Cc: patches@linaro.org, ian.campbell@citrix.com,
	Julien Grall <julien.grall@linaro.org>,
	stefano.stabellini@eu.citrix.com
Subject: [PATCH v5 5/7] xen/arm: Fix assert in send_SGI_one
Date: Thu, 26 Sep 2013 12:09:39 +0100	[thread overview]
Message-ID: <1380193781-17474-6-git-send-email-julien.grall@linaro.org> (raw)
In-Reply-To: <1380193781-17474-1-git-send-email-julien.grall@linaro.org>

The GIC can handle maximum 8 cpus (0...7). The CPU id 7 is still valid.

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
---
 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);
 }
 
-- 
1.7.10.4

  parent reply	other threads:[~2013-09-26 11:09 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-26 11:09 [PATCH v5 0/7] Dissociate logical and gic/hardware CPU ID Julien Grall
2013-09-26 11:09 ` [PATCH v5 1/7] xen/arm: Introduce init_info structure Julien Grall
2013-09-26 11:09 ` [PATCH v5 2/7] xen/arm: use cpumask_t to describe cpu mask in gic_route_dt_irq Julien Grall
2013-09-26 11:09 ` [PATCH v5 3/7] xen/arm: Initialize correctly IRQ routing Julien Grall
2013-09-26 11:09 ` [PATCH v5 4/7] xen/arm: gic: Use the correct CPU ID Julien Grall
2013-09-26 11:09 ` Julien Grall [this message]
2013-09-26 11:09 ` [PATCH v5 6/7] xen/arm: Dissociate logical and hardware " Julien Grall
2013-09-26 11:09 ` [PATCH v5 7/7] xen/arm: Use the hardware ID to boot correctly secondary cpus Julien Grall
2013-09-26 15:09 ` [PATCH v5 0/7] Dissociate logical and gic/hardware CPU ID Ian Campbell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1380193781-17474-6-git-send-email-julien.grall@linaro.org \
    --to=julien.grall@linaro.org \
    --cc=ian.campbell@citrix.com \
    --cc=patches@linaro.org \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).