From owner-freebsd-current Sun Nov 12 12:24: 6 2000 Delivered-To: freebsd-current@freebsd.org Received: from peach.ocn.ne.jp (peach.ocn.ne.jp [210.145.254.87]) by hub.freebsd.org (Postfix) with ESMTP id 0D9F137B479; Sun, 12 Nov 2000 12:24:03 -0800 (PST) Received: from newsguy.com (p09-dn03kiryunisiki.gunma.ocn.ne.jp [210.232.224.138]) by peach.ocn.ne.jp (8.9.1a/OCN/) with ESMTP id FAA03180; Mon, 13 Nov 2000 05:24:00 +0900 (JST) Message-ID: <3A0EFBFC.C9CD7BBE@newsguy.com> Date: Mon, 13 Nov 2000 05:22:20 +0900 From: "Daniel C. Sobral" X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: en,pt-BR MIME-Version: 1.0 To: mjacob@feral.com Cc: John Baldwin , current@FreeBSD.ORG, John Polstra Subject: Re: savecore broken because kern.bootfile is set wrong References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Matthew Jacob wrote: > > Something actually was changed at some point perhaps? > On i386, kernelname is dug out of bootinfo and copied > (in assembler). > > On alpha: > > p = getenv("kernelname"); > if (p) > strncpy(kernelname, p, sizeof(kernelname) - 1); > > > Did the loader used to set kernelname as an environment variable? Yes, kernelname is set in common/load_elf.c. The i386 code strips it of any device prefix, though. The alpha code would do well to do the same. -- Daniel C. Sobral (8-DCS) dcs@newsguy.com dcs@freebsd.org capo@world.wide.bsdconspiracy.net He has been convicted of criminal possession of a clue with intent to distribute. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message