From owner-freebsd-current Mon Jun 2 12:40:03 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id MAA07508 for current-outgoing; Mon, 2 Jun 1997 12:40:03 -0700 (PDT) Received: from mexico.brainstorm.eu.org (root@mexico.brainstorm.fr [193.56.58.253]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id MAA07429; Mon, 2 Jun 1997 12:39:49 -0700 (PDT) Received: from brasil.brainstorm.eu.org (brasil.brainstorm.fr [193.56.58.33]) by mexico.brainstorm.eu.org (8.8.4/8.8.4) with ESMTP id VAA09606; Mon, 2 Jun 1997 21:39:42 +0200 Received: (from uucp@localhost) by brasil.brainstorm.eu.org (8.8.4/8.6.12) with UUCP id VAA09967; Mon, 2 Jun 1997 21:39:11 +0200 Received: (from roberto@localhost) by keltia.freenix.fr (8.8.5/keltia-uucp-2.9) id VAA23641; Mon, 2 Jun 1997 21:38:05 +0200 (CEST) Message-ID: <19970602213805.05855@keltia.freenix.fr> Date: Mon, 2 Jun 1997 21:38:05 +0200 From: Ollivier Robert To: "FreeBSD Current Users' list" Cc: kato@FreeBSD.ORG Subject: Patch to display MMX feature bit Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.67 X-Operating-System: FreeBSD 3.0-CURRENT ctm#3332 Sender: owner-current@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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 . My K6 has a value of 0x8001bf but displays the same string. With the patch, it will display . 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