From owner-freebsd-current Sat Oct 27 13: 0:56 2001 Delivered-To: freebsd-current@freebsd.org Received: from smtp.noos.fr (camus.noos.net [212.198.2.70]) by hub.freebsd.org (Postfix) with ESMTP id 22B7837B401 for ; Sat, 27 Oct 2001 13:00:50 -0700 (PDT) Received: (qmail 88528159 invoked by uid 0); 27 Oct 2001 20:00:47 -0000 Received: from unknown (HELO gits.dyndns.org) ([212.198.229.145]) (envelope-sender ) by 212.198.2.70 (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 27 Oct 2001 20:00:47 -0000 Received: (from root@localhost) by gits.dyndns.org (8.11.6/8.11.6) id f9RK0jn71364; Sat, 27 Oct 2001 22:00:45 +0200 (CEST) (envelope-from root) Message-Id: <200110272000.f9RK0jn71364@gits.dyndns.org> Subject: adding athlon xp to bsd.cpu.mk To: freebsd-stable , freebsd-current Date: Sat, 27 Oct 2001 22:00:44 +0200 (CEST) Reply-To: clefevre@citeweb.net From: Cyrille Lefevre Organization: ACME X-Face: X-Mailer: ELM [version 2.4ME+ PL94c (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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-current" in the body of the message