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:
parent
befb38bf9a
commit
83ebde953c
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user