diff options
author | Keith Whitwell <keith@tungstengraphics.com> | 2003-09-22 10:59:00 +0000 |
---|---|---|
committer | Keith Whitwell <keith@tungstengraphics.com> | 2003-09-22 10:59:00 +0000 |
commit | 6ead98e0fb467ad4a6d5129fac2e39885c779d0a (patch) | |
tree | c669436e970c524eeb1b59120c699e2018d29c36 | |
parent | 67a5fc3d1f61a411bd4901127d51382075473c11 (diff) |
Change mtrr version check
-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 |