Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Oct 2012 11:41:16 -0400
From:      John Baldwin <jhb@freebsd.org>
To:        freebsd-arch@freebsd.org
Cc:        Konstantin Belousov <kostikbel@gmail.com>, Dag-Erling Sm??rgrav <des@des.no>, Dimitry Andric <dimitry@andric.com>, Garrett Cooper <yanegomi@gmail.com>, Andriy Gapon <avg@freebsd.org>
Subject:   Re: x86 boot code build
Message-ID:  <201210051141.16147.jhb@freebsd.org>
In-Reply-To: <20121005133616.GP35915@deviant.kiev.zoral.com.ua>
References:  <506C385C.3020400@FreeBSD.org> <86a9w1kq94.fsf@ds4.des.no> <20121005133616.GP35915@deviant.kiev.zoral.com.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
On Friday, October 05, 2012 9:36:16 am Konstantin Belousov wrote:
> On Fri, Oct 05, 2012 at 03:22:31PM +0200, Dag-Erling Sm??rgrav wrote:
> > Konstantin Belousov <kostikbel@gmail.com> writes:
> > > So what ISA additions do you expect to get advantage of by switching
> > > to pentium-mmx from 486 ? As I already said, I am not aware of any.
> > 
> > The TSC, for one.  MMX, and the ability to use MMX registers to copy
> > data.
> 
> TSC is used regardless of the compiler flags, we use it if CPU claims
> that TSC is supported, even in usermode.
> 
> Compiler never generates MMX copies. More, in kernel, the manual
> FPU context save/restore is needed around the FPU/MMX register file access.

I agree with kib.  I don't think building i386 releases with > i486 buys
you much of anything.  Using MMX in the kernel is of dubious value (have to
be very careful to use it, and when tested in the past by bde@ for things like 
bcopy() and bzero() it wasn't a clear win IIRC).

Also, for the boot code, the most important thing is size.  The text + data + 
stack for /boot/loader has to all fit below 640k (and the first 40k is 
reserved by BTX, so you really only have 600k for that, minus any "low" memory 
consumed by things like PXE ROMs).  That is true even on amd64, and won't be 
any better on x86 until we fully support EFI for booting.

-- 
John Baldwin



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