svn commit: r313903 - head/sys/x86/x86

Konstantin Belousov kib at FreeBSD.org
Fri Feb 17 22:50:42 UTC 2017


Author: kib
Date: Fri Feb 17 22:50:41 2017
New Revision: 313903
URL: https://svnweb.freebsd.org/changeset/base/313903

Log:
  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

Modified:
  head/sys/x86/x86/x86_mem.c

Modified: head/sys/x86/x86/x86_mem.c
==============================================================================
--- head/sys/x86/x86/x86_mem.c	Fri Feb 17 22:49:52 2017	(r313902)
+++ head/sys/x86/x86/x86_mem.c	Fri Feb 17 22:50:41 2017	(r313903)
@@ -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);
 }


More information about the svn-src-head mailing list