Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Nov 2000 01:54:54 +1100 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        Matthew Jacob <mjacob@feral.com>
Cc:        John Baldwin <jhb@FreeBSD.ORG>, current@FreeBSD.ORG, John Polstra <jdp@polstra.com>
Subject:   Re: savecore broken because kern.bootfile is set wrong
Message-ID:  <Pine.BSF.4.21.0011120146060.502-100000@besplex.bde.org>
In-Reply-To: <Pine.LNX.4.21.0011101800040.31159-100000@zeppo.feral.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 10 Nov 2000, Matthew Jacob wrote:

> Something actually was changed at some point perhaps?
> On i386, kernelname is dug out of bootinfo and copied
> (in assembler).

i386's used to have this bug.  This was fixed in:

RCS file: /home/ncvs/src/sys/i386/i386/locore.s,v
Working file: locore.s
head: 1.138
...
----------------------------
revision 1.53
date: 1995/06/28 04:42:25;  author: davidg;  state: Exp;  lines: +10 -4
Make path to kernel absolute if it is passed in relative. This fixes
a related bug in some of the new 'foo'boot bootstrap code that has been
added over the past months. This change makes it no longer necessary
for the bootstrap to fix up the path (i.e. it can be removed).
----------------------------

This is still necessary, because at least old bootstraps (and boot2)
don't pass the full pathname (except someone broke old bootstraps
(and boot2)).

> On alpha:
> 
>         p = getenv("kernelname");
>         if (p)
>                 strncpy(kernelname, p, sizeof(kernelname) - 1);

Bruce



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0011120146060.502-100000>