Author: andrew
Date: Mon Mar  5 10:09:18 2018
New Revision: 330488
URL: https://svnweb.freebsd.org/changeset/base/330488

Log:
  In the ACPI GICv3 attach function call device_get_children to get the list
  of children. We expect this to be populated when configuring the secondary
  cores.
  
  Sponsored by: DARPA, AFRL
  Sponsored by: Cavium (Hardware)

Modified:
  head/sys/arm64/arm64/gic_v3_acpi.c

Modified: head/sys/arm64/arm64/gic_v3_acpi.c
==============================================================================
--- head/sys/arm64/arm64/gic_v3_acpi.c  Mon Mar  5 09:18:40 2018        
(r330487)
+++ head/sys/arm64/arm64/gic_v3_acpi.c  Mon Mar  5 10:09:18 2018        
(r330488)
@@ -280,6 +280,9 @@ gic_v3_acpi_attach(device_t dev)
         */
        gic_v3_acpi_bus_attach(dev);
 
+       if (device_get_children(dev, &sc->gic_children, &sc->gic_nchildren) !=0)
+               sc->gic_nchildren = 0;
+
        return (0);
 
 error:
_______________________________________________
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"

Reply via email to