From owner-svn-src-head@FreeBSD.ORG Wed Oct 15 03:38:03 2008 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A9ABF1065686; Wed, 15 Oct 2008 03:38:03 +0000 (UTC) (envelope-from nwhitehorn@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 986558FC21; Wed, 15 Oct 2008 03:38:03 +0000 (UTC) (envelope-from nwhitehorn@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id m9F3c3F2023145; Wed, 15 Oct 2008 03:38:03 GMT (envelope-from nwhitehorn@svn.freebsd.org) Received: (from nwhitehorn@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id m9F3c3qr023144; Wed, 15 Oct 2008 03:38:03 GMT (envelope-from nwhitehorn@svn.freebsd.org) Message-Id: <200810150338.m9F3c3qr023144@svn.freebsd.org> From: Nathan Whitehorn Date: Wed, 15 Oct 2008 03:38:03 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r183901 - head/sys/powerpc/ofw X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Oct 2008 03:38:03 -0000 Author: nwhitehorn Date: Wed Oct 15 03:38:03 2008 New Revision: 183901 URL: http://svn.freebsd.org/changeset/base/183901 Log: 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. Modified: head/sys/powerpc/ofw/ofw_syscons.c Modified: head/sys/powerpc/ofw/ofw_syscons.c ============================================================================== --- head/sys/powerpc/ofw/ofw_syscons.c Wed Oct 15 00:54:57 2008 (r183900) +++ head/sys/powerpc/ofw/ofw_syscons.c Wed Oct 15 03:38:03 2008 (r183901) @@ -51,6 +51,7 @@ __FBSDID("$FreeBSD$"); #include #include +#include #include #include @@ -845,6 +846,10 @@ ofwfb_scidentify(driver_t *driver, devic 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));