summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/ps3
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2011-11-21 04:35:23 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2011-11-21 04:35:23 +0000
commitc91c4ca875c489cf952148b0addd6f8d01ea05c9 (patch)
treef998f11095052249db158310c0f46816f5d0d81b /sys/powerpc/ps3
parent1ce25155b2d01208512db186340fcee21173a4c8 (diff)
downloadFreeBSD-src-c91c4ca875c489cf952148b0addd6f8d01ea05c9.zip
FreeBSD-src-c91c4ca875c489cf952148b0addd6f8d01ea05c9.tar.gz
The PPC IRQ layer assumes that the IPI IRQ is the last IRQ on the PIC.
This assumption is invalid and the code should be fixed, but humor it for now and set the "IPI" for PS3s in the non-SMP case to a large number. This fixes boot with a non-SMP kernel. Submitted by: geoffrey dot levand at mail dot ru MFC after: 1 week
Diffstat (limited to 'sys/powerpc/ps3')
-rw-r--r--sys/powerpc/ps3/ps3pic.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/powerpc/ps3/ps3pic.c b/sys/powerpc/ps3/ps3pic.c
index 3a62e3c..c9b5c0e 100644
--- a/sys/powerpc/ps3/ps3pic.c
+++ b/sys/powerpc/ps3/ps3pic.c
@@ -142,6 +142,8 @@ ps3pic_attach(device_t dev)
lv1_construct_event_receive_port(&sc->sc_ipi_outlet[1]);
lv1_connect_irq_plug_ext(ppe, !thread, sc->sc_ipi_outlet[0],
sc->sc_ipi_outlet[1], 0);
+#else
+ sc->sc_ipi_outlet[0] = sc->sc_ipi_outlet[1] = 63;
#endif
powerpc_register_pic(dev, 0, sc->sc_ipi_outlet[0], 1, FALSE);
OpenPOWER on IntegriCloud