From e5b69cb78e39e1043228664f5667e46f361af000 Mon Sep 17 00:00:00 2001 From: nwhitehorn Date: Wed, 15 Oct 2008 03:38:03 +0000 Subject: Prevent the OF syscons module from trying to attach to real devices on the nexus by only attaching to a device with no OF node. --- sys/powerpc/ofw/ofw_syscons.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sys/powerpc') diff --git a/sys/powerpc/ofw/ofw_syscons.c b/sys/powerpc/ofw/ofw_syscons.c index 99c5119..373ba11 100644 --- a/sys/powerpc/ofw/ofw_syscons.c +++ b/sys/powerpc/ofw/ofw_syscons.c @@ -51,6 +51,7 @@ __FBSDID("$FreeBSD$"); #include #include +#include #include #include @@ -845,6 +846,10 @@ ofwfb_scidentify(driver_t *driver, device_t parent) static int ofwfb_scprobe(device_t dev) { + /* This is a fake device, so make sure there is no OF node for it */ + if (ofw_bus_get_node(dev) != -1) + return ENXIO; + device_set_desc(dev, "System console"); return (sc_probe_unit(device_get_unit(dev), device_get_flags(dev) | SC_AUTODETECT_KBD)); -- cgit v1.1