aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/powerpc/aim/nexus.c5
-rw-r--r--sys/powerpc/powerpc/nexus.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/sys/powerpc/aim/nexus.c b/sys/powerpc/aim/nexus.c
index 1958f6cbbaff..7472bbeac881 100644
--- a/sys/powerpc/aim/nexus.c
+++ b/sys/powerpc/aim/nexus.c
@@ -54,6 +54,7 @@
*
* $FreeBSD$
*/
+#include "opt_psim.h"
#include <sys/param.h>
#include <sys/systm.h>
@@ -181,7 +182,11 @@ nexus_probe(device_t dev)
printf("nexus_probe: can't find /chosen");
if (OF_getprop(child, "interrupt-controller", &pic, 4) != 4)
+#ifndef PSIM
printf("nexus_probe: can't get interrupt-controller");
+#else
+ pic = OF_finddevice("/iobus/opic");
+#endif
sc->sc_pic = create_device_from_node(dev, pic);
diff --git a/sys/powerpc/powerpc/nexus.c b/sys/powerpc/powerpc/nexus.c
index 1958f6cbbaff..7472bbeac881 100644
--- a/sys/powerpc/powerpc/nexus.c
+++ b/sys/powerpc/powerpc/nexus.c
@@ -54,6 +54,7 @@
*
* $FreeBSD$
*/
+#include "opt_psim.h"
#include <sys/param.h>
#include <sys/systm.h>
@@ -181,7 +182,11 @@ nexus_probe(device_t dev)
printf("nexus_probe: can't find /chosen");
if (OF_getprop(child, "interrupt-controller", &pic, 4) != 4)
+#ifndef PSIM
printf("nexus_probe: can't get interrupt-controller");
+#else
+ pic = OF_finddevice("/iobus/opic");
+#endif
sc->sc_pic = create_device_from_node(dev, pic);