Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 06 Jun 2011 11:52:22 -0700
From:      Chuck Swiger <cswiger@mac.com>
To:        Warren Block <wblock@wonkity.com>, Adam Vande More <amvandemore@gmail.com>
Cc:        FreeBSD Questions List <questions@freebsd.org>
Subject:   Re: I486_CPU or I586_CPU in kernel config
Message-ID:  <61FDA0A1-96B9-4DCA-970E-CB0EB6A484F4@mac.com>
In-Reply-To: <alpine.BSF.2.00.1105301708120.11485@wonkity.com>
References:  <alpine.BSF.2.00.1105300842550.9995@wonkity.com> <BANLkTikUwUp8AGKz9uGyjwMpD3H6D9oBFA@mail.gmail.com> <BANLkTikRggozSjXrGUhTJrzSNaM02jfZEQ@mail.gmail.com> <alpine.BSF.2.00.1105301708120.11485@wonkity.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On May 30, 2011, at 4:53 PM, Warren Block wrote:
> On Mon, 30 May 2011, Adam Vande More wrote:
>> Perhaps this is the one you meant?
>> http://lists.freebsd.org/pipermail/freebsd-questions/2009-January/190568.html
> 
> That's the one!  Thanks!
> 
>> Actually the two threads touch on the same subject, and it seems removal of those options is still desirable on newer CPU's.
> 
> sys/i386/i386/support.s is mentioned, but doesn't seem to have anything explicitly specific for 586.  There are some i686 entries.

It depends on which version of FreeBSD we're talking about.  At the time of my post, FreeBSD 7.0 had just come out and FreeBSD 6.3/6.4 were widely used.  If you check CVSweb or SVN:

   http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/i386/i386/support.s
   svn://svn.freebsd.org/base/stable/7/sys/i386/i386/support.s

...you'll see a half-dozen entries which are conditionalized against I586_CPU:

% grep -A 1 I586_CPU support.s
#if defined(I586_CPU) && defined(DEV_NPX)
kernel_fpu_lock:
--
#if defined(I586_CPU) && defined(DEV_NPX)
ENTRY(i586_bzero)
--
#endif /* I586_CPU && defined(DEV_NPX) */

--
#if defined(I586_CPU) && defined(DEV_NPX)
ENTRY(i586_bcopy)
--
#endif /* I586_CPU && defined(DEV_NPX) */

--
#if defined(I586_CPU) && defined(DEV_NPX)
	ALIGN_TEXT
--
#if defined(I586_CPU) && defined(DEV_NPX)
ENTRY(i586_copyout)
--
#endif /* I586_CPU && defined(DEV_NPX) */

--
#if defined(I586_CPU) && defined(DEV_NPX)
	ALIGN_TEXT
--
#if defined(I586_CPU) && defined(DEV_NPX)
	ALIGN_TEXT
--
#if defined(I586_CPU) && defined(DEV_NPX)
ENTRY(i586_copyin)
--
#endif /* I586_CPU && defined(DEV_NPX) */

#if defined(I586_CPU) && defined(DEV_NPX)
/* fastmove(src, dst, len)
--
#endif /* I586_CPU && defined(DEV_NPX) */

It appears that this file was significantly re-written under FreeBSD-8.  Anyway, actually comparing and gathering some data is the most useful result, and I'm happy to see the numbers from Warren's test.

Regards,
-- 
-Chuck




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?61FDA0A1-96B9-4DCA-970E-CB0EB6A484F4>