Author: andrew Date: Tue May 31 18:05:17 2016 New Revision: 301062 URL: https://svnweb.freebsd.org/changeset/base/301062
Log: 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 Modified: head/sys/arm/arm/gic.c Modified: head/sys/arm/arm/gic.c ============================================================================== --- head/sys/arm/arm/gic.c Tue May 31 18:04:16 2016 (r301061) +++ head/sys/arm/arm/gic.c Tue May 31 18:05:17 2016 (r301062) @@ -968,7 +968,7 @@ gic_bind(struct arm_gic_softc *sc, u_int 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); _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"