Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Nov 2009 11:11:08 +0000 (UTC)
From:      Andriy Gapon <avg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r199968 - in head/sys: amd64/amd64 amd64/include i386/i386 i386/include
Message-ID:  <200911301111.nAUBB8qe028431@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avg
Date: Mon Nov 30 11:11:08 2009
New Revision: 199968
URL: http://svn.freebsd.org/changeset/base/199968

Log:
  x86 cpu features: add MOVBE reporting and flag
  
  The check is glimpsed from Linux and OpenSolaris.
  MOVBE instruction is found in Intel Atom processors.

Modified:
  head/sys/amd64/amd64/identcpu.c
  head/sys/amd64/include/specialreg.h
  head/sys/i386/i386/identcpu.c
  head/sys/i386/include/specialreg.h

Modified: head/sys/amd64/amd64/identcpu.c
==============================================================================
--- head/sys/amd64/amd64/identcpu.c	Mon Nov 30 08:01:18 2009	(r199967)
+++ head/sys/amd64/amd64/identcpu.c	Mon Nov 30 11:11:08 2009	(r199968)
@@ -259,7 +259,7 @@ printcpuinfo(void)
 				"\024SSE4.1"
 				"\025SSE4.2"
 				"\026x2APIC"	/* xAPIC Extensions */
-				"\027<b22>"
+				"\027MOVBE"
 				"\030POPCNT"
 				"\031<b24>"
 				"\032<b25>"

Modified: head/sys/amd64/include/specialreg.h
==============================================================================
--- head/sys/amd64/include/specialreg.h	Mon Nov 30 08:01:18 2009	(r199967)
+++ head/sys/amd64/include/specialreg.h	Mon Nov 30 11:11:08 2009	(r199968)
@@ -129,6 +129,7 @@
 #define	CPUID2_SSE41	0x00080000
 #define	CPUID2_SSE42	0x00100000
 #define	CPUID2_X2APIC	0x00200000
+#define	CPUID2_MOVBE	0x00400000
 #define	CPUID2_POPCNT	0x00800000
 
 /*

Modified: head/sys/i386/i386/identcpu.c
==============================================================================
--- head/sys/i386/i386/identcpu.c	Mon Nov 30 08:01:18 2009	(r199967)
+++ head/sys/i386/i386/identcpu.c	Mon Nov 30 11:11:08 2009	(r199968)
@@ -746,7 +746,7 @@ printcpuinfo(void)
 				"\024SSE4.1"
 				"\025SSE4.2"
 				"\026x2APIC"	/* xAPIC Extensions */
-				"\027<b22>"
+				"\027MOVBE"
 				"\030POPCNT"
 				"\031<b24>"
 				"\032<b25>"

Modified: head/sys/i386/include/specialreg.h
==============================================================================
--- head/sys/i386/include/specialreg.h	Mon Nov 30 08:01:18 2009	(r199967)
+++ head/sys/i386/include/specialreg.h	Mon Nov 30 11:11:08 2009	(r199968)
@@ -126,6 +126,7 @@
 #define	CPUID2_SSE41	0x00080000
 #define	CPUID2_SSE42	0x00100000
 #define	CPUID2_X2APIC	0x00200000
+#define	CPUID2_MOVBE	0x00400000
 #define	CPUID2_POPCNT	0x00800000
 
 /*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200911301111.nAUBB8qe028431>