svn commit: r255419 - in head/sys/powerpc: aim include powerpc

Nathan Whitehorn nwhitehorn at FreeBSD.org
Mon Sep 9 12:52:36 UTC 2013


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;
 


More information about the svn-src-all mailing list