svn commit: r330488 - head/sys/arm64/arm64

Andrew Turner andrew at FreeBSD.org
Mon Mar 5 10:09:19 UTC 2018


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:


More information about the svn-src-head mailing list