Re: CPUTYPE=pentium-m

David O'Brien <[email protected]>
Newsgroups gmane.os.freebsd.devel.mobile,gmane.os.freebsd.stable
Organization The NUXI BSD group
Message-ID <[email protected]>
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    ([email protected])

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
 
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-mobile
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.