Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Sep 2013 12:52:35 +0000 (UTC)
From:      Nathan Whitehorn <nwhitehorn@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r255419 - in head/sys/powerpc: aim include powerpc
Message-ID:  <201309091252.r89CqZgI024436@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nwhitehorn
Date: Mon Sep  9 12:52:34 2013
New Revision: 255419
URL: http://svnweb.freebsd.org/changeset/base/255419

Log:
  Raise artificial limits on number of CPUs and number of interrupts.
  
  Approved by:	re (kib)

Modified:
  head/sys/powerpc/aim/nexus.c
  head/sys/powerpc/include/param.h
  head/sys/powerpc/powerpc/intr_machdep.c

Modified: head/sys/powerpc/aim/nexus.c
==============================================================================
--- head/sys/powerpc/aim/nexus.c	Mon Sep  9 12:51:24 2013	(r255418)
+++ head/sys/powerpc/aim/nexus.c	Mon Sep  9 12:52:34 2013	(r255419)
@@ -195,7 +195,8 @@ static driver_t nexus_driver = {
 
 static devclass_t nexus_devclass;
 
-DRIVER_MODULE(nexus, root, nexus_driver, nexus_devclass, 0, 0);
+EARLY_DRIVER_MODULE(nexus, root, nexus_driver, nexus_devclass, 0, 0,
+    BUS_PASS_BUS);
 
 static int
 nexus_probe(device_t dev)
@@ -216,7 +217,7 @@ nexus_attach(device_t dev)
 	sc = device_get_softc(dev);
 
 	start = 0;
-	end = MAX_PICS*INTR_VECTORS - 1;
+	end = ~0;
 
 	sc->sc_rman.rm_start = start;
 	sc->sc_rman.rm_end = end;

Modified: head/sys/powerpc/include/param.h
==============================================================================
--- head/sys/powerpc/include/param.h	Mon Sep  9 12:51:24 2013	(r255418)
+++ head/sys/powerpc/include/param.h	Mon Sep  9 12:52:34 2013	(r255419)
@@ -69,7 +69,7 @@
 
 #if defined(SMP) || defined(KLD_MODULE)
 #ifndef MAXCPU
-#define	MAXCPU		8
+#define	MAXCPU		32	
 #endif
 #else
 #define	MAXCPU		1

Modified: head/sys/powerpc/powerpc/intr_machdep.c
==============================================================================
--- head/sys/powerpc/powerpc/intr_machdep.c	Mon Sep  9 12:51:24 2013	(r255418)
+++ head/sys/powerpc/powerpc/intr_machdep.c	Mon Sep  9 12:52:34 2013	(r255419)
@@ -176,7 +176,7 @@ intrcnt_add(const char *name, u_long **c
 static struct powerpc_intr *
 intr_lookup(u_int irq)
 {
-	char intrname[8];
+	char intrname[16];
 	struct powerpc_intr *i, *iscan;
 	int vector;
 



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