Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/x86/include move XCR0 definitions to next to CR0's.



details:   https://anonhg.NetBSD.org/src/rev/023b747666a6
branches:  trunk
changeset: 792184:023b747666a6
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Wed Dec 25 13:14:36 2013 +0000

description:
move XCR0 definitions to next to CR0's.

diffstat:

 sys/arch/x86/include/specialreg.h |  22 +++++++++++-----------
 1 files changed, 11 insertions(+), 11 deletions(-)

diffs (43 lines):

diff -r 2db4984cdb51 -r 023b747666a6 sys/arch/x86/include/specialreg.h
--- a/sys/arch/x86/include/specialreg.h Wed Dec 25 11:15:49 2013 +0000
+++ b/sys/arch/x86/include/specialreg.h Wed Dec 25 13:14:36 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: specialreg.h,v 1.74 2013/12/08 18:00:51 dsl Exp $      */
+/*     $NetBSD: specialreg.h,v 1.75 2013/12/25 13:14:36 msaitoh Exp $  */
 
 /*-
  * Copyright (c) 1991 The Regents of the University of California.
@@ -88,6 +88,16 @@
 #define CR4_OSXSAVE    0x00040000 /* enable xsave and xrestore */
 #define CR4_SMEP       0x00100000 /* enable SMEP support */
 
+/*
+ * Extended Control Register XCR0
+ */
+#define        XCR0_X87        0x00000001      /* x87 FPU/MMX state */
+#define        XCR0_SSE        0x00000002      /* SSE state */
+#define        XCR0_AVX        0x00000004      /* AVX state (ymmn registers) */
+
+#define XCR0_FLAGS1    "\20" \
+       "\1" "x87"      "\2" "SSE"      "\3" "AVX"      "\4" "B03"
+
 
 /*
  * CPUID "features" bits
@@ -218,16 +228,6 @@
                ? 0 : (CPUID_TO_EXTMODEL(cpuid) << 4)))
 
 /*
- * Extended Control Register XCR0
- */
-#define        XCR0_X87        0x00000001      /* x87 FPU/MMX state */
-#define        XCR0_SSE        0x00000002      /* SSE state */
-#define        XCR0_AVX        0x00000004      /* AVX state (ymmn registers) */
-
-#define XCR0_FLAGS1    "\20" \
-       "\1" "x87"      "\2" "SSE"      "\3" "AVX"      "\4" "B03"
-
-/*
  * CPUID Processor extended state Enumeration Fn0000000d
  *
  * %ecx == 0: supported features info:



Home | Main Index | Thread Index | Old Index