From d6ce71e50a2eb10a51b86a315f7a1c32018cc2e2 Mon Sep 17 00:00:00 2001 From: Peter Grehan Date: Thu, 19 Sep 2002 04:31:04 +0000 Subject: psim device support Approved by: benno --- sys/powerpc/aim/nexus.c | 5 +++++ sys/powerpc/powerpc/nexus.c | 5 +++++ 2 files changed, 10 insertions(+) (limited to 'sys') 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 #include @@ -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 #include @@ -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); -- cgit v1.3