From owner-p4-projects@FreeBSD.ORG Wed Jul 25 19:14:33 2007 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id D724716A421; Wed, 25 Jul 2007 19:14:32 +0000 (UTC) Delivered-To: perforce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8FF1016A417 for ; Wed, 25 Jul 2007 19:14:32 +0000 (UTC) (envelope-from thioretic@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 7BE3613C458 for ; Wed, 25 Jul 2007 19:14:32 +0000 (UTC) (envelope-from thioretic@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id l6PJEWSE071202 for ; Wed, 25 Jul 2007 19:14:32 GMT (envelope-from thioretic@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id l6PJEWr2071199 for perforce@freebsd.org; Wed, 25 Jul 2007 19:14:32 GMT (envelope-from thioretic@FreeBSD.org) Date: Wed, 25 Jul 2007 19:14:32 GMT Message-Id: <200707251914.l6PJEWr2071199@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to thioretic@FreeBSD.org using -f From: Maxim Zhuravlev To: Perforce Change Reviews Cc: Subject: PERFORCE change 124099 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jul 2007 19:14:33 -0000 http://perforce.freebsd.org/chv.cgi?CH=124099 Change 124099 by thioretic@thioretic on 2007/07/25 19:14:24 Need to attach root_bus to set things up. Affected files ... .. //depot/projects/soc2007/thioretic_gidl/kern/subr_bus.c#22 edit Differences ... ==== //depot/projects/soc2007/thioretic_gidl/kern/subr_bus.c#22 (text+ko) ==== @@ -4649,8 +4649,14 @@ return (-1); } +static int +root_attach(device_t dev){ + return (0); +} + static kobj_method_t root_methods[] = { /* Device interface */ + KOBJMETHOD(device_attach, root_attach), KOBJMETHOD(device_shutdown, bus_generic_shutdown), KOBJMETHOD(device_suspend, bus_generic_suspend), KOBJMETHOD(device_resume, root_resume), @@ -4684,7 +4690,7 @@ root_bus = make_device(NULL, "root", 0); root_bus->desc = "System root bus"; device_set_driver(root_bus, root_driver); - root_bus->state = DS_ATTACHED; + device_attach(root_bus); root_devclass = devclass_find_internal("root", 0, FALSE, FALSE); devinit(); return (0);