From 264fae079227ad6ab2ebfd04cb7e22b9186a97ea Mon Sep 17 00:00:00 2001 From: Peter Grehan Date: Thu, 16 Mar 2017 03:06:50 +0000 Subject: [PATCH] Add the AMD MONITORX/MWAITX feature definition introduced in Bulldozer/Ryzen CPUs. Reviewed by: kib MFC after: 1 week --- sys/x86/include/specialreg.h | 1 + sys/x86/x86/identcpu.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/x86/include/specialreg.h b/sys/x86/include/specialreg.h index 2f62ef403e19..e02540b3cfbd 100644 --- a/sys/x86/include/specialreg.h +++ b/sys/x86/include/specialreg.h @@ -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 diff --git a/sys/x86/x86/identcpu.c b/sys/x86/x86/identcpu.c index 86bdc0ab70fb..22f39668a247 100644 --- a/sys/x86/x86/identcpu.c +++ b/sys/x86/x86/identcpu.c @@ -906,7 +906,7 @@ printcpuinfo(void) "\033DBE" /* Data Breakpoint extension */ "\034PTSC" /* Performance TSC */ "\035PL2I" /* L2I perf count */ - "\036" + "\036MWAITX" /* MONITORX/MWAITX instructions */ "\037" "\040" );