1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-25 11:37:56 +00:00

Rely on CPUID feature only to enable attaching. MTRR are architectural

and there is no reason to check cpu family or vendor.

Noted by:   royger
Reviewed by: jhb
Sponsored by:	The FreeBSD Foundation
MFC after:	2 weeks
Differential revision:	https://reviews.freebsd.org/D9657
This commit is contained in:
Konstantin Belousov 2017-02-17 22:50:41 +00:00
parent befb38bf9a
commit 83ebde953c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=313903

View File

@ -721,16 +721,6 @@ x86_mem_drvinit(void *unused)
return;
if (!(cpu_feature & CPUID_MTRR))
return;
if ((cpu_id & 0xf00) != 0x600 && (cpu_id & 0xf00) != 0xf00)
return;
switch (cpu_vendor_id) {
case CPU_VENDOR_INTEL:
case CPU_VENDOR_AMD:
case CPU_VENDOR_CENTAUR:
break;
default:
return;
}
mem_range_softc.mr_op = &x86_mrops;
x86_mrinit(&mem_range_softc);
}