diff options
author | grehan <grehan@FreeBSD.org> | 2002-09-19 04:31:04 +0000 |
---|---|---|
committer | grehan <grehan@FreeBSD.org> | 2002-09-19 04:31:04 +0000 |
commit | 079bbffd71773ddf06dd0766eb9717d055a08cce (patch) | |
tree | 15c43ebe74ba11b23dfff6a41e82854e753543a0 /sys/powerpc/aim/nexus.c | |
parent | 74c6147b0621b4c95f738072425b17070cc139fe (diff) | |
download | FreeBSD-src-079bbffd71773ddf06dd0766eb9717d055a08cce.zip FreeBSD-src-079bbffd71773ddf06dd0766eb9717d055a08cce.tar.gz |
psim device support
Approved by: benno
Diffstat (limited to 'sys/powerpc/aim/nexus.c')
-rw-r--r-- | sys/powerpc/aim/nexus.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/powerpc/aim/nexus.c b/sys/powerpc/aim/nexus.c index 1958f6c..7472bbe 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); |