1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-09 13:42:56 +00:00

arm_gic_map is a mask not the CPUs ID, there is no need to shift it.

Pointy-hat to:	andrew
Obtained from:	ABT Systems Ltd
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Andrew Turner 2016-05-31 18:05:17 +00:00
parent e73954218a
commit 02a1932d1c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=301062

View File

@ -968,7 +968,7 @@ gic_bind(struct arm_gic_softc *sc, u_int irq, cpuset_t *cpus)
for (mask = 0, cpu = 0; cpu < end; cpu++)
if (CPU_ISSET(cpu, cpus))
mask |= 1 << arm_gic_map[cpu];
mask |= arm_gic_map[cpu];
gic_d_write_1(sc, GICD_ITARGETSR(0) + irq, mask);
return (0);