Date: Mon, 2 Jun 1997 21:38:05 +0200 From: Ollivier Robert <roberto@keltia.freenix.fr> To: "FreeBSD Current Users' list" <freebsd-current@FreeBSD.ORG> Cc: kato@FreeBSD.ORG Subject: Patch to display MMX feature bit Message-ID: <19970602213805.05855@keltia.freenix.fr>
next in thread | raw e-mail | index | archive | help
According to AMD's documentation, bit 23 of the CPUID value indicates that the MMX feature is supported. Here is a -- yet untested -- patch to display this bit. My P133 used to give me a value of 0x1bf or <FPU,VME,DE,PSE,TSC,MSR,MCE,CX8>. My K6 has a value of 0x8001bf but displays the same string. With the patch, it will display <FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,MMX>. Index: identcpu.c =================================================================== RCS file: /spare/FreeBSD-current/src/sys/i386/i386/identcpu.c,v retrieving revision 1.21 diff -u -2 -r1.21 identcpu.c --- identcpu.c 1997/05/23 06:22:47 1.21 +++ identcpu.c 1997/06/02 19:37:17 @@ -381,4 +381,5 @@ "\017MCA" "\020CMOV" + "\030MMX" ); } PS: why is the bitfield in kprintf one-based ? -- Ollivier ROBERT -=- FreeBSD: There are no limits -=- roberto@keltia.freenix.fr FreeBSD keltia.freenix.fr 3.0-CURRENT #10: Fri May 23 22:47:39 CEST 1997
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970602213805.05855>