projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1113482
)
xen/arm: Fix assert in send_SGI_one
author
Julien Grall
<julien.grall@linaro.org>
Thu, 26 Sep 2013 11:09:39 +0000
(12:09 +0100)
committer
Ian Campbell
<ian.campbell@citrix.com>
Thu, 26 Sep 2013 14:44:58 +0000
(15:44 +0100)
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
patch
|
blob
|
history
diff --git
a/xen/arch/arm/gic.c
b/xen/arch/arm/gic.c
index 05685cded0953594aa31ebfc8add42a6841ca409..74575cda7a5e5b9cd8ce9b897529c1f6616d2d67 100644
(file)
--- 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);
}