From owner-freebsd-questions@FreeBSD.ORG Mon Jun 6 18:52:51 2011 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 17C7F1065675 for ; Mon, 6 Jun 2011 18:52:51 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from asmtpout030.mac.com (asmtpout030.mac.com [17.148.16.105]) by mx1.freebsd.org (Postfix) with ESMTP id F0C178FC14 for ; Mon, 6 Jun 2011 18:52:50 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Received: from cswiger1.apple.com ([17.209.4.71]) by asmtp030.mac.com (Oracle Communications Messaging Exchange Server 7u4-20.01 64bit (built Nov 21 2010)) with ESMTPSA id <0LMD003OBTRAVF90@asmtp030.mac.com> for questions@freebsd.org; Mon, 06 Jun 2011 11:52:23 -0700 (PDT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.4.6813,1.0.148,0.0.0000 definitions=2011-06-06_06:2011-06-06, 2011-06-06, 1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=6.0.2-1012030000 definitions=main-1106060148 From: Chuck Swiger In-reply-to: Date: Mon, 06 Jun 2011 11:52:22 -0700 Message-id: <61FDA0A1-96B9-4DCA-970E-CB0EB6A484F4@mac.com> References: To: Warren Block , Adam Vande More X-Mailer: Apple Mail (2.1084) Cc: FreeBSD Questions List Subject: Re: I486_CPU or I586_CPU in kernel config X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Jun 2011 18:52:51 -0000 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