Hi,

how about the following patch (untested) regarding the newer athlon xp
processor type ? if needed, I could submit a PR.

Index: bsd.cpu.mk
===================================================================
RCS file: /home/ncvs/src/share/mk/bsd.cpu.mk,v
retrieving revision 1.2.2.4
diff -u -r1.2.2.4 bsd.cpu.mk
--- bsd.cpu.mk  2001/03/21 11:43:20     1.2.2.4
+++ bsd.cpu.mk  2001/10/27 19:56:42
@@ -17,6 +17,8 @@
 CPUTYPE = i686
 . elif ${CPUTYPE} == "pentium"
 CPUTYPE = i586
+. elif ${CPUTYPE} == "athlonxp"
+CPUTYPE = xp
 . elif ${CPUTYPE} == "athlon"
 CPUTYPE = k7
 . endif
@@ -28,8 +30,10 @@
 
 .if !defined(NO_CPU_CFLAGS) || !defined(NO_CPU_COPTFLAGS)
 . if ${MACHINE_ARCH} == "i386"
-.  if ${CPUTYPE} == "k7"
+.  if ${CPUTYPE} == "xp"
 _CPUCFLAGS = -march=k6 # gcc doesn't support athlon yet, but it will
+.  elif ${CPUTYPE} == "k7"
+_CPUCFLAGS = -march=k6 # gcc doesn't support athlon yet, but it will
 .  elif ${CPUTYPE} == "k6-2"
 _CPUCFLAGS = -march=k6
 .  elif ${CPUTYPE} == "k6"
@@ -79,7 +83,9 @@
 # presence of a CPU feature.
 
 .if ${MACHINE_ARCH} == "i386"
-. if ${CPUTYPE} == "k7"
+. if ${CPUTYPE} == "xp"
+MACHINE_CPU = k7 3dnow sse mmx k6 k5 i586 i486 i386
+. elif ${CPUTYPE} == "k7"
 MACHINE_CPU = k7 3dnow mmx k6 k5 i586 i486 i386
 . elif ${CPUTYPE} == "k6-2"
 MACHINE_CPU = 3dnow mmx k6 k5 i586 i486 i386

Cyrille.
-- 
Cyrille Lefevre                 mailto:[EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to