Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Jan 2007 00:24:29 -0500
From:      Kris Kennaway <kris@obsecurity.org>
To:        "Chris H." <chris#@1command.com>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Why does FBSD always assume it's on an 8080 CPU?
Message-ID:  <20070127052429.GA23476@xor.obsecurity.org>
In-Reply-To: <20070126204515.upi5vwtpu884w080@webmail.1command.com>
References:  <20070126171218.2k25n1tt28c08wow@webmail.1command.com> <45BABDBF.2090601@andric.com> <20070126190747.2488s1r41sw0scgw@webmail.1command.com> <45BAC510.3050404@rogers.com> <20070126204515.upi5vwtpu884w080@webmail.1command.com>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
On Fri, Jan 26, 2007 at 08:45:15PM -0800, Chris H. wrote:
> Hello and thank you for your response...
> 
> Quoting Mike Jakubik <mikej@rogers.com>:
> 
> >Chris H. wrote:
> >>
> >>CPU: AMD Athlon(tm) XP (1102.51-MHz 686-class CPU)
> >>Origin = "AuthenticAMD"  Id = 0x680  Stepping = 0
> >>Features=0x383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE> AMD 
> >>Features=0xc0400800<SYSCALL,MMX+,3DNow+,3DNow>
> >>
> >>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
> >
> >Why are you using "pentium4" with an Athlon XP CPU? use "athlonxp" 
> >instead. Also, don't modify the COPTFLAGS.
> >
> 
> Ooops. I've changed it to:
> 
> CPUTYPE?=athlon-4
> CFLAGS+= -march=athlon-4 -mmmx -m3dnow -m3dnow+ -msse -msse2
> 
> Look a little better? :)

No, the CFLAGS is still entirely superfluous.  Just setting CPUTYPE
will DTRT.

Kris

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (FreeBSD)

iD8DBQFFuuINWry0BWjoQKURAoQWAKDMQCatMeC2xxozZiJqA4LEW9B05wCgjUHO
h4IGzvwflQXgjSgZEwMWi9Y=
=+ajq
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070127052429.GA23476>