From 6ead98e0fb467ad4a6d5129fac2e39885c779d0a Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Mon, 22 Sep 2003 10:59:00 +0000 Subject: Change mtrr version check --- bsd-core/drm_os_freebsd.h | 7 ++++++- bsd/drm_os_freebsd.h | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/bsd-core/drm_os_freebsd.h b/bsd-core/drm_os_freebsd.h index 6097219a..15e48939 100644 --- a/bsd-core/drm_os_freebsd.h +++ b/bsd-core/drm_os_freebsd.h @@ -49,11 +49,16 @@ #define __REALLY_HAVE_AGP __HAVE_AGP #endif + +/* This guard was previously 500000 - but FreeBSD as early as 4.6 had + * mtrr support. + */ #ifdef __i386__ -#define __REALLY_HAVE_MTRR (__HAVE_MTRR) && (__FreeBSD_version >= 500000) +#define __REALLY_HAVE_MTRR (__HAVE_MTRR) && (__FreeBSD_version >= 460000) #else #define __REALLY_HAVE_MTRR 0 #endif + #define __REALLY_HAVE_SG (__HAVE_SG) #if __REALLY_HAVE_AGP diff --git a/bsd/drm_os_freebsd.h b/bsd/drm_os_freebsd.h index 6097219a..15e48939 100644 --- a/bsd/drm_os_freebsd.h +++ b/bsd/drm_os_freebsd.h @@ -49,11 +49,16 @@ #define __REALLY_HAVE_AGP __HAVE_AGP #endif + +/* This guard was previously 500000 - but FreeBSD as early as 4.6 had + * mtrr support. + */ #ifdef __i386__ -#define __REALLY_HAVE_MTRR (__HAVE_MTRR) && (__FreeBSD_version >= 500000) +#define __REALLY_HAVE_MTRR (__HAVE_MTRR) && (__FreeBSD_version >= 460000) #else #define __REALLY_HAVE_MTRR 0 #endif + #define __REALLY_HAVE_SG (__HAVE_SG) #if __REALLY_HAVE_AGP -- cgit v1.2.3