summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorcem <cem@FreeBSD.org>2015-12-19 20:47:15 +0000
committercem <cem@FreeBSD.org>2015-12-19 20:47:15 +0000
commit37870ca8990e65ac8c52d7c7f4332d0b9e086f22 (patch)
tree229354fef411685738bebe7c26f646c99969c04d /sys
parent69774947bfffd5e16d26b60a82d880aa659abbf2 (diff)
downloadFreeBSD-src-37870ca8990e65ac8c52d7c7f4332d0b9e086f22.zip
FreeBSD-src-37870ca8990e65ac8c52d7c7f4332d0b9e086f22.tar.gz
x86: Detect feature flags "CLWB" and "PCOMMIT"
"The availability of CLWB instruction is indicated by the presence of the CPUID feature flag CLWB (bit 24 of the EBX register)." CLWB is similar to CLFLUSHOPT, except that it is not required to discard cacheline contents. "On processors that supports PCOMMIT, PCOMMIT is enumerated through CPUID (CPUID.7.0.EBX[22]) only when the feature is enabled by BIOS." PCOMMIT is used to cause store-to-memory operations to become persistent (protected from power failure). Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'sys')
-rw-r--r--sys/x86/x86/identcpu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/x86/x86/identcpu.c b/sys/x86/x86/identcpu.c
index ae72121..db17162 100644
--- a/sys/x86/x86/identcpu.c
+++ b/sys/x86/x86/identcpu.c
@@ -916,7 +916,9 @@ printcpuinfo(void)
"\024ADX"
/* Supervisor Mode Access Prevention */
"\025SMAP"
+ "\027PCOMMIT"
"\030CLFLUSHOPT"
+ "\031CLWB"
"\032PROCTRACE"
"\033AVX512PF"
"\034AVX512ER"
OpenPOWER on IntegriCloud