Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Mar 2018 10:09:18 +0000 (UTC)
From:      Andrew Turner <andrew@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r330488 - head/sys/arm64/arm64
Message-ID:  <201803051009.w25A9I83069367@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803051009.w25A9I83069367>