summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2013-09-09 12:52:34 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2013-09-09 12:52:34 +0000
commitb2fa807b0ea69fe87722e720c585c3117956f5ae (patch)
treeac48471ca0feba33db66ee68203efe2032242d3c
parentd54687609ce697afeb64e5cdd57396c563fcf8c8 (diff)
downloadFreeBSD-src-b2fa807b0ea69fe87722e720c585c3117956f5ae.zip
FreeBSD-src-b2fa807b0ea69fe87722e720c585c3117956f5ae.tar.gz
Raise artificial limits on number of CPUs and number of interrupts.
Approved by: re (kib)
-rw-r--r--sys/powerpc/aim/nexus.c5
-rw-r--r--sys/powerpc/include/param.h2
-rw-r--r--sys/powerpc/powerpc/intr_machdep.c2
3 files changed, 5 insertions, 4 deletions
diff --git a/sys/powerpc/aim/nexus.c b/sys/powerpc/aim/nexus.c
index 9a6bf47..109ec52 100644
--- a/sys/powerpc/aim/nexus.c
+++ b/sys/powerpc/aim/nexus.c
@@ -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;
diff --git a/sys/powerpc/include/param.h b/sys/powerpc/include/param.h
index 2528325..7e7c8f1 100644
--- a/sys/powerpc/include/param.h
+++ b/sys/powerpc/include/param.h
@@ -69,7 +69,7 @@
#if defined(SMP) || defined(KLD_MODULE)
#ifndef MAXCPU
-#define MAXCPU 8
+#define MAXCPU 32
#endif
#else
#define MAXCPU 1
diff --git a/sys/powerpc/powerpc/intr_machdep.c b/sys/powerpc/powerpc/intr_machdep.c
index abfe905..539d3f6 100644
--- a/sys/powerpc/powerpc/intr_machdep.c
+++ b/sys/powerpc/powerpc/intr_machdep.c
@@ -176,7 +176,7 @@ intrcnt_add(const char *name, u_long **countp)
static struct powerpc_intr *
intr_lookup(u_int irq)
{
- char intrname[8];
+ char intrname[16];
struct powerpc_intr *i, *iscan;
int vector;
OpenPOWER on IntegriCloud