Author: andrew
Date: Tue May 31 17:49:47 2016
New Revision: 301060
URL: https://svnweb.freebsd.org/changeset/base/301060

Log:
  Bin interrupts to the correct CPU when we boot on a non-zero CPU.
  
  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 17:30:08 2016        (r301059)
+++ head/sys/arm/arm/gic.c      Tue May 31 17:49:47 2016        (r301060)
@@ -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 << cpu;
+                       mask |= 1 << arm_gic_map[cpu];
 
        gic_d_write_1(sc, GICD_ITARGETSR(0) + irq, mask);
        return (0);
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to