HEADS UP! boot2 problems
Alexander Kabaev
kan at freebsd.org
Wed Aug 4 23:27:31 PDT 2004
On Fri, Jul 30, 2004 at 03:21:19PM +0000, Alexander Kabaev wrote:
> On Thu, Jul 29, 2004 at 08:39:43PM -0600, Scott Long wrote:
> > All,
> >
> > The GCC 3.4 import seems to have broken the boot2 loader on at least
> > i386. This doesn't affect normal world and kernel builds and installs,
> > but does affect writing new bootblocks via the disklabel program. You
> > should refrain from doing this until it gets fixed. It's being looked
> > into right now.
> >
> > Scott
>
> Commit below made boot2 usable again.
As suggested by Matt Dillon, the problems were caused by imcompletely
zeroed out BSS. I merged approproate fixes from DragonflyBSD in commit
below. Success/failure reports from people affected are appreciated.
kann 2004-08-05 06:00:05 UTC
FreeBSD src repository
Modified files:
sys/boot/i386/boot2 boot1.S
sys/boot/i386/btx/lib btxcsu.s
Log:
Move boot2 BSS zeroing into btx startup code out of boot1. boot1 does not
have clear idea on boot2 BSS size and leaves portion of it not zeroed out.
btxcsu.s is in much better position for this job.
Obtained from: DragonflyBSD (with minor adjustments)
Revision Changes Path
1.29 +0 -4 src/sys/boot/i386/boot2/boot1.S
1.4 +9 -1 src/sys/boot/i386/btx/lib/btxcsu.s
More information about the freebsd-current
mailing list