From owner-freebsd-bugs Thu Jun 24 1: 0: 4 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id B00A814FC7 for ; Thu, 24 Jun 1999 01:00:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id BAA27519; Thu, 24 Jun 1999 01:00:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Date: Thu, 24 Jun 1999 01:00:02 -0700 (PDT) Message-Id: <199906240800.BAA27519@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Murata Shuuichirou Subject: Re: kern/10022: kernel cannot detect WinChips correctly. Reply-To: Murata Shuuichirou Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR kern/10022; it has been noted by GNATS. From: Murata Shuuichirou To: sheldonh@FreeBSD.org Cc: freebsd-bugs@FreeBSD.org Subject: Re: kern/10022: kernel cannot detect WinChips correctly. Date: 24 Jun 1999 01:16:42 +0900 In message <199906221050.DAA29480@freefall.freebsd.org>, `' wrote: > Could you provide feedback as to whether your patch still works when > modified as per Kevin Day's suggestion. Alternatively, let us know > why you changed the bit-value test for cpu_id . Kevin Day's suggestion is not related to my change, but it's correct and already in identcpu.c. So, my previous patch is now cannot be applied cleanly. I'll attach the diff from current identcpu.c (rev. 1.63). -- Murata, Shuuichirou Index: identcpu.c =================================================================== RCS file: /home/ncvs/src/sys/i386/i386/identcpu.c,v retrieving revision 1.63 diff -u -r1.63 identcpu.c --- identcpu.c 1999/05/29 06:57:38 1.63 +++ identcpu.c 1999/06/23 16:07:02 @@ -460,6 +460,20 @@ } } else if (strcmp(cpu_vendor,"IBM") == 0) strcpy(cpu_model, "Blue Lightning CPU"); + else if (strcmp(cpu_vendor, "CentaurHauls") == 0) { + strcpy(cpu_model, "IDT "); + switch (cpu_id & 0xff0) { + case 0x540: + strcat(cpu_model, "WinChip C6"); + break; + case 0x580: + strcat(cpu_model, "WinChip 2"); + break; + default: + strcat(cpu_model, "Unknown"); + break; + } + } #endif printf("%s (", cpu_model); @@ -511,7 +525,8 @@ if (strcmp(cpu_vendor, "GenuineIntel") == 0 || strcmp(cpu_vendor, "AuthenticAMD") == 0 || ((strcmp(cpu_vendor, "CyrixInstead") == 0) && - ((cpu_id & 0xf00) > 0x500))) { + ((cpu_id & 0xf00) > 0x500)) || + strcmp(cpu_vendor, "CentaurHauls") == 0) { printf(" Stepping=%u", cpu_id & 0xf); if (strcmp(cpu_vendor, "CyrixInstead") == 0) printf(" DIR=0x%04x", cyrix_did); To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message