From owner-cvs-src@FreeBSD.ORG Mon Jun 19 08:11:24 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4285816A494; Mon, 19 Jun 2006 08:11:24 +0000 (UTC) (envelope-from davidxu@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id B218343E93; Mon, 19 Jun 2006 07:51:47 +0000 (GMT) (envelope-from davidxu@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k5J7pl4v027199; Mon, 19 Jun 2006 07:51:47 GMT (envelope-from davidxu@repoman.freebsd.org) Received: (from davidxu@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k5J7pl83027198; Mon, 19 Jun 2006 07:51:47 GMT (envelope-from davidxu) Message-Id: <200606190751.k5J7pl83027198@repoman.freebsd.org> From: David Xu Date: Mon, 19 Jun 2006 07:51:47 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/i386/include specialreg.h src/sys/i386/i386 identcpu.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 08:11:24 -0000 davidxu 2006-06-19 07:51:47 UTC FreeBSD src repository Modified files: sys/i386/include specialreg.h sys/i386/i386 identcpu.c Log: Clear bit 22 in MSR IA32_MISC_ENABLE, according to Intel document, when the bit 22 is set to 1, CPUID with EAX=0 returns a maximum value in EAX[7..0] of 3, when set to 0(default), CPUID with EAX=0 returns the number corresponding to the maximum standard function supported. On my machine, BIOS sets the bit to 1 to make it to be compatible with old OS, this causes dual-core Pentium-D (two physical cores) to be identified as hyperthreading (two logical cores) by function mp_topology(). Revision Changes Path 1.163 +11 -0 src/sys/i386/i386/identcpu.c 1.30 +1 -0 src/sys/i386/include/specialreg.h