From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 2 00:29:51 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6F3EB106566C for ; Tue, 2 Mar 2010 00:29:51 +0000 (UTC) (envelope-from a_best01@uni-muenster.de) Received: from zivm-exrelay3.uni-muenster.de (ZIVM-EXRELAY3.UNI-MUENSTER.DE [128.176.192.20]) by mx1.freebsd.org (Postfix) with ESMTP id 058DA8FC12 for ; Tue, 2 Mar 2010 00:29:50 +0000 (UTC) X-IronPort-AV: E=Sophos;i="4.49,563,1262559600"; d="scan'208";a="27324160" Received: from zivmaildisp1.uni-muenster.de (HELO ZIVMAILUSER01.UNI-MUENSTER.DE) ([128.176.188.85]) by zivm-relay3.uni-muenster.de with ESMTP; 02 Mar 2010 01:29:49 +0100 Received: by ZIVMAILUSER01.UNI-MUENSTER.DE (Postfix, from userid 149459) id 57E8D1B0768; Tue, 2 Mar 2010 01:29:49 +0100 (CET) Date: Tue, 02 Mar 2010 01:29:48 +0100 (CET) From: Alexander Best Sender: Organization: Westfaelische Wilhelms-Universitaet Muenster To: jhell Message-ID: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: [patch] extending {amd64|i386} cpu info X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Mar 2010 00:29:51 -0000 jhell schrieb am 2010-03-01: > On Fri, 26 Feb 2010 22:19, alexbestms@ wrote: > >hi there, > >i always forget how to decipher model and family from the cpu id. > >of course > >there're 3rd party tools to do that for you, but instead i decided > >to hack the > >kernel. ;) > >maybe somebody finds these changes useful. > >cheers. > >alex > What about the other arch's ? I only see i386 and amd64. I would > think if this functionality is going to "make it in" that it should > be done consistantly across the board, the way it is now. just had a look at the other archs and in fact implementing these changes is not that easy as on i386 and amd64. talking about consistency: i found the cpu info outputs on arm, i64, etc. to differ from the ones on i386 and amd64. so in fact there is inconsistency present atm. i also think that on some archs it's not possible to output cpu id, stepping, family and model simply because there's no cpu instruction (CPUID or something similar) returning those info for freebsd to use. cheers. alex > -- > jhell