Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Oct 2001 22:00:44 +0200 (CEST)
From:      Cyrille Lefevre <clefevre@citeweb.net>
To:        freebsd-stable <freebsd-stable@FreeBSD.org>, freebsd-current <freebsd-current@FreeBSD.org>
Subject:   adding athlon xp to bsd.cpu.mk
Message-ID:  <200110272000.f9RK0jn71364@gits.dyndns.org>

next in thread | raw e-mail | index | archive | help
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:clefevre@citeweb.net

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




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