Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Oct 2006 16:12:41 -0500
From:      John Baldwin <jhb@freebsd.org>
To:        Ruslan Ermilov <ru@freebsd.org>
Cc:        cvs-src@freebsd.org, src-committers@freebsd.org, cvs-all@freebsd.org
Subject:   Re: cvs commit: src/sys/boot/common load_elf.c src/sys/boot/i386/boot2 boot2.c src/sys/boot/i386/libi386 elf32_freebsd.c src/sys/boot/pc98/boot2 boot.c
Message-ID:  <200610301612.42357.jhb@freebsd.org>
In-Reply-To: <20061030210442.GB27957@rambler-co.ru>
References:  <200610291450.k9TEowL4034801@repoman.freebsd.org> <200610301155.55597.jhb@freebsd.org> <20061030210442.GB27957@rambler-co.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On Monday 30 October 2006 16:04, Ruslan Ermilov wrote:
> On Mon, Oct 30, 2006 at 11:55:54AM -0500, John Baldwin wrote:
> > On Sunday 29 October 2006 09:50, Ruslan Ermilov wrote:
> > > ru          2006-10-29 14:50:58 UTC
> > > 
> > >   FreeBSD src repository
> > > 
> > >   Modified files:
> > >     sys/boot/common      load_elf.c 
> > >     sys/boot/i386/boot2  boot2.c 
> > >     sys/boot/i386/libi386 elf32_freebsd.c 
> > >     sys/boot/pc98/boot2  boot.c 
> > >   Log:
> > >   Because the BTX mini-kernel now uses flat memory mode and clients
> > >   are no longer limited to a virtual address space of 16 megabytes,
> > >   only mask high two bits of a virtual address.  This allows to load
> > >   larger kernels (up to 1 gigabyte).  Not masking addresses at all
> > >   was a bad idea on machines with less than >3G of memory -- kernels
> > >   are linked at 0xc0xxxxxx, and that would attempt to load a kernel
> > >   at above 3G.  By masking only two highest bits we stay within the
> > >   safe limits while still allowing to boot larger kernels.
> > >   
> > >   (This is a safer reimplmentation of sys/boot/i386/boot2/boot.2.c
> > >   rev. 1.71.)
> > >   
> > >   Prodded by:     jhb
> > >   Tested by:      nyan (pc98)
> > 
> > Thanks!
> > 
> Do you think it would be a good idea to MFC this in time for 6.2?

I think so, but see my other e-mail, I think it should mask 4 bits rather than 
just 2.

-- 
John Baldwin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200610301612.42357.jhb>