From owner-freebsd-current Fri Apr 26 2:54:23 2002 Delivered-To: freebsd-current@freebsd.org Received: from Awfulhak.org (gw.Awfulhak.org [217.204.245.18]) by hub.freebsd.org (Postfix) with ESMTP id 4463237B405; Fri, 26 Apr 2002 02:54:17 -0700 (PDT) Received: from hak.lan.Awfulhak.org (root@hak.lan.Awfulhak.org [IPv6:fec0::1:12]) by Awfulhak.org (8.12.2/8.12.2) with ESMTP id g3Q9sDsG076175; Fri, 26 Apr 2002 10:54:13 +0100 (BST) (envelope-from brian@freebsd-services.com) Received: from hak.lan.Awfulhak.org (brian@localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.12.3/8.12.3) with ESMTP id g3Q9sAxH001077; Fri, 26 Apr 2002 10:54:10 +0100 (BST) (envelope-from brian@freebsd-services.com) Message-Id: <200204260954.g3Q9sAxH001077@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Harti Brandt Cc: Brian Somers , Ian Dowse , brian@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: Revision 1.88 of kern_linker.c breaks module loading for diskless In-Reply-To: Message from Harti Brandt of "Fri, 26 Apr 2002 09:28:42 +0200." <20020426092705.X795-100000@beagle.fokus.gmd.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 26 Apr 2002 10:54:10 +0100 From: Brian Somers Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > On Fri, 26 Apr 2002, Brian Somers wrote: > > BS>The intent is to discover whether there's a filesystem yet (vn_open() > BS>will die horribly otherwise). > BS> > BS>My use of rootdev is (obviously) flawed. AFAICT, either rootvp > BS>or rootvnode should be used, but I can't tell the difference between > BS>the two at a glance and am lacking development resources right now > BS>(my development box seems to enjoy dropping cores too frequently to > BS>build a kernel at the moment). > BS> > BS>If somebody could test that rootvnode or rootvp are non-NULL after > BS>an NFS-mounted root is set up, I'd thankfully approve the quick > BS>fix... :*) > > dlc1# gdb -k /boot/kernel/kernel /dev/mem > (no debugging symbols found)... > IdlePTD at phsyical address 0x00392000 > initial pcb at physical address 0x082bdda0 > panic messages: > --- > --- > #0 0xc017b968 in mi_switch () > (kgdb) p rootdev > $1 = -1 > (kgdb) p rootvnode > $2 = -843452416 > (kgdb) p rootvp > $3 = -843452416 > (kgdb) > > They obviously point to the same thing and are non-NULL (root is NFS). Thanks. I've committed the change. > harti > -- > harti brandt, http://www.fokus.gmd.de/research/cc/cats/employees/hartmut.brandt/private > brandt@fokus.fhg.de -- Brian http://www.freebsd-services.com/ Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message