Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Jan 2000 19:44:02 +0900
From:      KATO Takenori <kato@ganko.eps.nagoya-u.ac.jp>
To:        asami@FreeBSD.org
Cc:        tanimura@FreeBSD.org, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/i386/i386 identcpu.c
Message-ID:  <20000120194402Y.kato@gneiss.eps.nagoya-u.ac.jp>
In-Reply-To: Your message of "Thu, 20 Jan 2000 09:23:59 %2B0900" <20000120092359H.kato@gneiss.eps.nagoya-u.ac.jp>
References:  <20000120092359H.kato@gneiss.eps.nagoya-u.ac.jp>

next in thread | previous in thread | raw e-mail | index | archive | help
I wrote:
> Agreed.  Also, printing "Pentium II/Pentium II Xeson/Celeron" for the
> CPU_PII can simplify the printcpuinfo.

Here is the patch to do this.

---------- BEGIN ----------
*** identcpu.c.ORIG	Thu Jan 20 19:41:44 2000
--- identcpu.c	Thu Jan 20 18:57:37 2000
***************
*** 199,221 ****
  				        strcat(cpu_model, "Pentium Pro");
  					break;
  				case 0x30:
- 				        strcat(cpu_model, "Pentium II");
- 					cpu = CPU_PII;
- 					break;
  				case 0x50:
- 				        strcat(cpu_model, "Pentium II/Xeon/Celeron");
- 					cpu = CPU_PII;
- 					break;
  				case 0x60:
! 				        strcat(cpu_model, "Pentium II/Celeron");
  					cpu = CPU_PII;
  					break;
  				case 0x70:
- 				        strcat(cpu_model, "Pentium III/Xeon");
- 					cpu = CPU_PIII;
- 					break;
  				case 0x80:
! 				        strcat(cpu_model, "Pentium III");
  					cpu = CPU_PIII;
  					break;
  				default:
--- 199,214 ----
  				        strcat(cpu_model, "Pentium Pro");
  					break;
  				case 0x30:
  				case 0x50:
  				case 0x60:
! 				        strcat(cpu_model,
! 				"Pentium II/PentiumII Xeon/Celeron");
  					cpu = CPU_PII;
  					break;
  				case 0x70:
  				case 0x80:
! 				        strcat(cpu_model,
! 					"Pentium III/Pentium III Xeon");
  					cpu = CPU_PIII;
  					break;
  				default:
---------- END ----------

-----------------------------------------------+--------------------------+
KATO Takenori <kato@ganko.eps.nagoya-u.ac.jp>  |        FreeBSD           |
Dept. Earth Planet. Sci, Nagoya Univ.          |    The power to serve!   |
Nagoya, 464-8602, Japan                        |  http://www.FreeBSD.org/ |
                                               |http://www.jp.FreeBSD.org/|
++++ FreeBSD(98) 3.3R-Rev. 01 available!       +==========================+


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




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