From owner-freebsd-i386@FreeBSD.ORG Sat Mar 12 02:23:24 2005 Return-Path: Delivered-To: freebsd-i386@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 664) id 395E316A4CF; Sat, 12 Mar 2005 02:23:24 +0000 (GMT) Date: Sat, 12 Mar 2005 02:23:24 +0000 From: David O'Brien To: Bartosz Fabianowski Message-ID: <20050312022324.GA4899@hub.freebsd.org> References: <422ACE0B.4060503@lumachedelcervello.cjb.net> <422B502C.6090003@chillt.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <422B502C.6090003@chillt.de> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 4.11-STABLE Organization: The NUXI BSD group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 cc: Eugenio cc: freebsd-stable@freebsd.org cc: freebsd-i386@freebsd.org cc: freebsd-mobile@freebsd.org Subject: Re: CPUTYPE=pentium-m X-BeenThere: freebsd-i386@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: obrien@freebsd.org List-Id: I386-specific issues for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Mar 2005 02:23:24 -0000 On Sun, Mar 06, 2005 at 07:47:08PM +0100, Bartosz Fabianowski wrote: > >i have read that were some problems compiling the kernel and the > >loader with "pentium-m" in CPUTYPE. are they fixed now? > > I'm the one who filed the original bug report: > http://www.freebsd.org/cgi/query-pr.cgi?pr=75898 .. > I'd assume the answer to this one is yes - it's safe. Personally, I compile > world and kernel as pentium3, but that's just out of laziness. As you can > read in the bug report, the problem is that SSE2 instructions get used by > the kernel and loader before they are enabled. Once the boot gets to the > first userland programs, SSE2 is enabled so any world programs should run > just fine when compiled as pentium-m. Are you saying, all we need to do is commit this diff to make everyone's environment happy? -- -- David (obrien@FreeBSD.org) Index: kern.mk =================================================================== RCS file: /home/ncvs/src/sys/conf/kern.mk,v retrieving revision 1.42 diff -u -r1.42 kern.mk --- kern.mk 14 May 2004 13:35:46 -0000 1.42 +++ kern.mk 12 Mar 2005 02:03:47 -0000 @@ -28,7 +28,8 @@ # cache tag lines) # .if ${MACHINE_ARCH} == "i386" && ${CC} != "icc" -CFLAGS+= -mno-align-long-strings -mpreferred-stack-boundary=2 +CFLAGS+= -mno-align-long-strings -mpreferred-stack-boundary=2 \ + -mno-sse -mno-sse2 INLINE_LIMIT?= 8000 .endif