diff options
-rw-r--r-- | bsd-core/drm_os_freebsd.h | 7 | ||||
-rw-r--r-- | 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 |