summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuiz Souza <luiz@netgate.com>2018-02-21 14:22:04 -0300
committerLuiz Souza <luiz@netgate.com>2018-02-21 14:22:04 -0300
commitfaf16174043b793fa12aaaf6f113a31cb1ae7968 (patch)
tree997511bd01b2941af528f5549467e7bec8eb45d7
parent35c91cb80e59124ecb53b65180b4ae555f96dac6 (diff)
downloadFreeBSD-src-faf16174043b793fa12aaaf6f113a31cb1ae7968.zip
FreeBSD-src-faf16174043b793fa12aaaf6f113a31cb1ae7968.tar.gz
Revert "MFC r323822 (by cem):"
This reverts commit f203cac76577ea45b9cd11818d169a0848443507.
-rw-r--r--sys/x86/include/specialreg.h7
-rw-r--r--sys/x86/include/x86_var.h1
-rw-r--r--sys/x86/x86/identcpu.c12
3 files changed, 0 insertions, 20 deletions
diff --git a/sys/x86/include/specialreg.h b/sys/x86/include/specialreg.h
index 77f01cd..94cadd3 100644
--- a/sys/x86/include/specialreg.h
+++ b/sys/x86/include/specialreg.h
@@ -323,13 +323,6 @@
#define AMDPM_CPB 0x00000200
/*
- * AMD extended function 8000_0008h ebx info (amd_extended_feature_extensions)
- */
-#define AMDFEID_CLZERO 0x00000001
-#define AMDFEID_IRPERF 0x00000002
-#define AMDFEID_XSAVEERPTR 0x00000004
-
-/*
* AMD extended function 8000_0008h ecx info
*/
#define AMDID_CMP_CORES 0x000000ff
diff --git a/sys/x86/include/x86_var.h b/sys/x86/include/x86_var.h
index 73a24c7..ffdf2f0 100644
--- a/sys/x86/include/x86_var.h
+++ b/sys/x86/include/x86_var.h
@@ -45,7 +45,6 @@ extern u_int cpu_feature2;
extern u_int amd_feature;
extern u_int amd_feature2;
extern u_int amd_pminfo;
-extern u_int amd_extended_feature_extensions;
extern u_int via_feature_rng;
extern u_int via_feature_xcrypt;
extern u_int cpu_clflush_line_size;
diff --git a/sys/x86/x86/identcpu.c b/sys/x86/x86/identcpu.c
index d2fc82b..dd2863b 100644
--- a/sys/x86/x86/identcpu.c
+++ b/sys/x86/x86/identcpu.c
@@ -92,7 +92,6 @@ u_int cpu_feature2; /* Feature flags */
u_int amd_feature; /* AMD feature flags */
u_int amd_feature2; /* AMD feature flags */
u_int amd_pminfo; /* AMD advanced power management info */
-u_int amd_extended_feature_extensions;
u_int via_feature_rng; /* VIA RNG features */
u_int via_feature_xcrypt; /* VIA ACE features */
u_int cpu_high; /* Highest arg to CPUID */
@@ -993,16 +992,6 @@ printcpuinfo(void)
}
}
- if (amd_extended_feature_extensions != 0) {
- printf("\n "
- "AMD Extended Feature Extensions ID EBX="
- "0x%b", amd_extended_feature_extensions,
- "\020"
- "\001CLZERO"
- "\002IRPerf"
- "\003XSaveErPtr");
- }
-
if (via_feature_rng != 0 || via_feature_xcrypt != 0)
print_via_padlock_info();
@@ -1482,7 +1471,6 @@ finishidentcpu(void)
if (cpu_exthigh >= 0x80000008) {
do_cpuid(0x80000008, regs);
cpu_maxphyaddr = regs[0] & 0xff;
- amd_extended_feature_extensions = regs[1];
cpu_procinfo2 = regs[2];
} else {
cpu_maxphyaddr = (cpu_feature & CPUID_PAE) != 0 ? 36 : 32;
OpenPOWER on IntegriCloud