Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Oct 2004 10:12:54 +0800 (CST)
From:      Rong-En Fan <rafan@infor.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:    i386/72340: [PATCH] add Pentium M, P3 M, P4 M support to bsd.cpu.mk 
Message-ID:  <200410050212.i952Csop028951@svm.csie.ntu.edu.tw>
Resent-Message-ID: <200410050220.i952KORs068842@freefall.freebsd.org>

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

>Number:         72340
>Category:       i386
>Synopsis:       [PATCH] add Pentium M, P3 M, P4 M support to bsd.cpu.mk
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-i386
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 05 02:20:24 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Rong-En Fan
>Release:        FreeBSD 5.3-BETA5 i386
>Organization:
NTU CSIE
>Environment:
System: FreeBSD svm.csie.ntu.edu.tw 5.3-BETA5 FreeBSD 5.3-BETA5 #13: Mon Sep 20 02:31:32 CST 2004 root@svm.csie.ntu.edu.tw:/usr/obj/usr/src/sys/SVM i386


	
>Description:
	newer GCC (not sure, but 3.4.2 has thoese) supports Pentium M,
	Pentium 3/4 M optimization. but, bsd.cpu.mk doesn't utilize
	these.
	
>How-To-Repeat:
	
>Fix:

	I have tested on my IBM X31 which has Pentium M.
	Hope others who have Pentinum 3/4 M or using ICC as
	default compiler can help to test this patch.

--- /usr/share/mk/bsd.cpu.mk	Sun Sep 26 02:36:03 2004
+++ bsd.cpu.mk	Mon Oct  4 02:47:42 2004
@@ -30,8 +30,14 @@
 . if ${MACHINE_ARCH} == "i386"
 .  if ${CPUTYPE} == "pentium4"
 CPUTYPE = p4
+.  elif ${CPUTYPE} == "pentium4m"
+CPUTYPE = p4m
 .  elif ${CPUTYPE} == "pentium3"
 CPUTYPE = p3
+.  elif ${CPUTYPE} == "pentium3m"
+CPUTYPE = p3m
+.  elif ${CPUTYPE} == "pentium-m"
+CPUTYPE = p-m
 .  elif ${CPUTYPE} == "pentiumpro"
 CPUTYPE = i686
 .  elif ${CPUTYPE} == "pentium"
@@ -74,9 +80,15 @@
 .  elif ${CPUTYPE} == "p4"
 _CPUCFLAGS = -march=pentium4
 _ICC_CPUCFLAGS = -tpp7 -xiMKW
+.  elif ${CPUTYPE} == "p4m"
+_CPUCFLAGS = -march=pentium4m
 .  elif ${CPUTYPE} == "p3"
 _CPUCFLAGS = -march=pentium3
 _ICC_CPUCFLAGS = -tpp6 -xiMK
+.  elif ${CPUTYPE} == "p3m"
+_CPUCFLAGS = -march=pentium3m
+.  elif ${CPUTYPE} == "p-m"
+_CPUCFLAGS = -march=pentium-m
 .  elif ${CPUTYPE} == "p2"
 _CPUCFLAGS = -march=pentium2
 _ICC_CPUCFLAGS = -tpp6 -xiM
@@ -127,9 +139,9 @@
 MACHINE_CPU = mmx k6 k5 i586 i486 i386
 .  elif ${CPUTYPE} == "k5"
 MACHINE_CPU = k5 i586 i486 i386
-.  elif ${CPUTYPE} == "p4"
+.  elif ${CPUTYPE} == "p4" || ${CPUTYPE} == "p4m" || ${CPUTYPE} == "p-m"
 MACHINE_CPU = sse2 sse i686 mmx i586 i486 i386
-.  elif ${CPUTYPE} == "p3"
+.  elif ${CPUTYPE} == "p3" || ${CPUTYPE} == "p3m"
 MACHINE_CPU = sse i686 mmx i586 i486 i386
 .  elif ${CPUTYPE} == "p2"
 MACHINE_CPU = i686 mmx i586 i486 i386
	


>Release-Note:
>Audit-Trail:
>Unformatted:



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