diff options
| author | Peter Grehan <grehan@FreeBSD.org> | 2002-09-19 04:31:04 +0000 |
|---|---|---|
| committer | Peter Grehan <grehan@FreeBSD.org> | 2002-09-19 04:31:04 +0000 |
| commit | d6ce71e50a2eb10a51b86a315f7a1c32018cc2e2 (patch) | |
| tree | 15c43ebe74ba11b23dfff6a41e82854e753543a0 /sys/powerpc | |
| parent | 81a6d01d1c2dbfd022ddcff4a790f93cebe25a55 (diff) | |
Notes
Diffstat (limited to 'sys/powerpc')
| -rw-r--r-- | sys/powerpc/aim/nexus.c | 5 | ||||
| -rw-r--r-- | sys/powerpc/powerpc/nexus.c | 5 |
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); |
