Module Name:    src
Committed By:   msaitoh
Date:           Wed Dec 25 13:14:36 UTC 2013

Modified Files:
        src/sys/arch/x86/include: specialreg.h

Log Message:
move XCR0 definitions to next to CR0's.


To generate a diff of this commit:
cvs rdiff -u -r1.74 -r1.75 src/sys/arch/x86/include/specialreg.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/x86/include/specialreg.h
diff -u src/sys/arch/x86/include/specialreg.h:1.74 src/sys/arch/x86/include/specialreg.h:1.75
--- src/sys/arch/x86/include/specialreg.h:1.74	Sun Dec  8 18:00:51 2013
+++ src/sys/arch/x86/include/specialreg.h	Wed Dec 25 13:14:36 2013
@@ -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:

Reply via email to