From owner-freebsd-stable@FreeBSD.ORG Sat Jan 27 03:09:16 2007 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A480116A405 for ; Sat, 27 Jan 2007 03:09:16 +0000 (UTC) (envelope-from chris#@1command.com) Received: from mail.1command.com (mail.1command.com [216.177.243.35]) by mx1.freebsd.org (Postfix) with ESMTP id 3EAB013C46B for ; Sat, 27 Jan 2007 03:09:16 +0000 (UTC) (envelope-from chris#@1command.com) Received: from mail.1command.com (localhost.1command.com [127.0.0.1]) by mail.1command.com (8.13.3/8.13.3) with ESMTP id l0R37lXU077711 for ; Fri, 26 Jan 2007 19:09:13 -0800 (PST) (envelope-from chris#@1command.com) Received: (from www@localhost) by mail.1command.com (8.13.3/8.13.3/Submit) id l0R37liC077710 for freebsd-stable@freebsd.org; Fri, 26 Jan 2007 19:07:47 -0800 (PST) (envelope-from chris#@1command.com) X-Authentication-Warning: mail.1command.com: www set sender to chris#@1command.com using -f Received: from demon.dnswatch.com (demon.dnswatch.com [216.177.243.42]) by webmail.1command.com (H.R. Communications Messaging System) with HTTP; Fri, 26 Jan 2007 19:07:47 -0800 Message-ID: <20070126190747.2488s1r41sw0scgw@webmail.1command.com> X-Priority: 3 (Normal) Date: Fri, 26 Jan 2007 19:07:47 -0800 From: "Chris H." To: freebsd-stable@freebsd.org References: <20070126171218.2k25n1tt28c08wow@webmail.1command.com> <45BABDBF.2090601@andric.com> In-Reply-To: <45BABDBF.2090601@andric.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: H.R. Communications Internet Messaging System (HCIMS) 4.1 Professional (not for redistribution) / FreeBSD-5.5 Subject: Re: Why does FBSD always assume it's on an 8080 CPU? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Jan 2007 03:09:16 -0000 > Context switching. > We already preserve the "core" CPU state and the FPU state between > context switches. Adding MMX into the mix means preserving an MMX > state (since it can clobber the FPU state) and so forth. > > jmc Quoting Dimitry Andric : > Chris H. wrote: >> I've noticed building kernels, that since v. >= 5 that during >> the phase 2/3 all the lines echoed to the screen contain: >> -mno-mmx -mno-3dnow -mno-sse -mno-sse2 ... > > See /usr/share/examples/etc/make.conf. > > >> As Pentium have been the "norm" for many years now, why aren't >> these /assumed/? > > Because i486 is still the lowest common denominator, at least for 6.x. > > >> Default? hmmm... not as far as I can tell. Anyway, I would *greatly* >> appreciate any insight on this issue. Do I need to pollute my make.conf >> file to achive a Pentium kernel? > > Yes. Is this so horrible? > Hello Kris, John, Dimitry, and thank you for your taking the time to respond and the "wake-up call" (in regards to searching the list first) ;) Based on your responses and my research in that area: ---------------------------------------------------------------------- Yes, it's supposed to be that way. Certain parts of the FreeBSD system cannot use MMX or SSE instructions (e.g. the boot loader) but it's okay since they are absolutely not performance critical. Kris ###################################################################### The kernel will "support" MMX and SSE -- that is, any programs (root or userland) which use MMX/SSE will work just fine. That is: any programs built with gcc can indeed support MMX and SSE operations. The kernel itself _will not_ use any SSE or MMX operations when built. This is because these optimisations are known to break the FreeBSD kernel. This applies to all i386 architectures, and probably 64-bit architectures too (not sure). Chad ---------------------------------------------------------------------- Can I (pre || a)ssume that given my CPU echoes the following: CPU: AMD Athlon(tm) XP (1102.51-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x680 Stepping = 0 Features=0x383fbff AMD Features=0xc0400800 That I simply build world/kernel with an clean (empty) make.conf and add the following during port(s) building to attain optimum results given my CPU for this current biuld? CPUTYPE?=pentium4 COPTFLAGS= -march=pentium4 -mmmx -m3dnow -m3dnow+ -msse -msse2 Sorry, I'm new to Athlon. Does it show? Again, apologies for spamming this list, and thank you (and everyone else) very much for all your time. --Chris -- panic: kernel trap (ignored) ----------------------------------------------------------------- FreeBSD 5.4-RELEASE-p12 (SMP - 900x2) Tue Mar 7 19:37:23 PST 2006 /////////////////////////////////////////////////////////////////