svn commit: r302429 - projects/powernv/powerpc/pseries
Nathan Whitehorn
nwhitehorn at FreeBSD.org
Fri Jul 8 12:46:27 UTC 2016
Author: nwhitehorn
Date: Fri Jul 8 12:46:26 2016
New Revision: 302429
URL: https://svnweb.freebsd.org/changeset/base/302429
Log:
Calculate cpu_range appropriately: second cell is number of CPUs rather than
the highest ID.
Modified:
projects/powernv/powerpc/pseries/xics.c
Modified: projects/powernv/powerpc/pseries/xics.c
==============================================================================
--- projects/powernv/powerpc/pseries/xics.c Fri Jul 8 11:30:58 2016 (r302428)
+++ projects/powernv/powerpc/pseries/xics.c Fri Jul 8 12:46:26 2016 (r302429)
@@ -193,6 +193,7 @@ xicp_attach(device_t dev)
if (OF_hasprop(phandle, "ibm,interrupt-server-ranges")) {
OF_getencprop(phandle, "ibm,interrupt-server-ranges",
sc->cpu_range, sizeof(sc->cpu_range));
+ sc->cpu_range[1] += sc->cpu_range[0];
device_printf(dev, "Handling CPUs %d-%d\n", sc->cpu_range[0],
sc->cpu_range[1]-1);
} else {
More information about the svn-src-projects
mailing list