Author: grehan
Date: Thu Mar 16 03:06:50 2017
New Revision: 315361
URL: https://svnweb.freebsd.org/changeset/base/315361

Log:
  Add the AMD MONITORX/MWAITX feature definition introduced in
  Bulldozer/Ryzen CPUs.
  
  Reviewed by:  kib
  MFC after:    1 week

Modified:
  head/sys/x86/include/specialreg.h
  head/sys/x86/x86/identcpu.c

Modified: head/sys/x86/include/specialreg.h
==============================================================================
--- head/sys/x86/include/specialreg.h   Thu Mar 16 02:31:42 2017        
(r315360)
+++ head/sys/x86/include/specialreg.h   Thu Mar 16 03:06:50 2017        
(r315361)
@@ -227,6 +227,7 @@
 #define        AMDID2_DBE      0x04000000
 #define        AMDID2_PTSC     0x08000000
 #define        AMDID2_PTSCEL2I 0x10000000
+#define        AMDID2_MWAITX   0x20000000
 
 /*
  * CPUID instruction 1 eax info

Modified: head/sys/x86/x86/identcpu.c
==============================================================================
--- head/sys/x86/x86/identcpu.c Thu Mar 16 02:31:42 2017        (r315360)
+++ head/sys/x86/x86/identcpu.c Thu Mar 16 03:06:50 2017        (r315361)
@@ -906,7 +906,7 @@ printcpuinfo(void)
                                "\033DBE"       /* Data Breakpoint extension */
                                "\034PTSC"      /* Performance TSC */
                                "\035PL2I"      /* L2I perf count */
-                               "\036<b29>"
+                               "\036MWAITX"    /* MONITORX/MWAITX instructions 
*/
                                "\037<b30>"
                                "\040<b31>"
                                );
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to