From owner-p4-projects@FreeBSD.ORG Wed Apr 9 09:00:34 2003 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 79A7437B40E; Wed, 9 Apr 2003 09:00:33 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1991B37B405 for ; Wed, 9 Apr 2003 09:00:33 -0700 (PDT) Received: from mail.speakeasy.net (mail14.speakeasy.net [216.254.0.214]) by mx1.FreeBSD.org (Postfix) with ESMTP id DBC7B43FA3 for ; Wed, 9 Apr 2003 09:00:28 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: (qmail 5485 invoked from network); 9 Apr 2003 16:00:32 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender )encrypted SMTP for ; 9 Apr 2003 16:00:32 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.8/8.12.8) with ESMTP id h39G0POv049698; Wed, 9 Apr 2003 12:00:25 -0400 (EDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.4 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <200304090537.h395bEZV045167@repoman.freebsd.org> Date: Wed, 09 Apr 2003 12:00:24 -0400 (EDT) From: John Baldwin To: Peter Wemm cc: Perforce Change Reviews Subject: RE: PERFORCE change 28616 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Apr 2003 16:00:35 -0000 On 09-Apr-2003 Peter Wemm wrote: > http://perforce.freebsd.org/chv.cgi?CH=28616 > > Change 28616 by peter@peter_daintree on 2003/04/08 22:36:45 > > move identify_cpu from locore to here. Can we do this for i386 as well? > Affected files ... > > .. //depot/projects/hammer/sys/x86_64/x86_64/identcpu.c#4 edit > > Differences ... > > ==== //depot/projects/hammer/sys/x86_64/x86_64/identcpu.c#4 (text+ko) ==== > > @@ -62,7 +62,7 @@ > > /* XXX - should be in header file: */ > void printcpuinfo(void); > -void finishidentcpu(void); > +void identify_cpu(void); > void earlysetcpuclass(void); > void panicifcpuunsupported(void); > > @@ -280,8 +280,21 @@ > * Final stage of CPU identification. -- Should I check TI? > */ > void > -finishidentcpu(void) > +identify_cpu(void) > { > + u_int regs[4]; > + > + do_cpuid(0, regs); > + cpu_high = regs[0]; > + ((u_int *)&cpu_vendor)[0] = regs[1]; > + ((u_int *)&cpu_vendor)[1] = regs[2]; > + ((u_int *)&cpu_vendor)[2] = regs[3]; > + cpu_vendor[12] = '\0'; > + > + do_cpuid(1, regs); > + cpu_id = regs[0]; > + cpu_procinfo = regs[1]; > + cpu_feature = regs[3]; > } > > static void -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/