diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2012-09-08 16:53:02 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2012-09-08 16:53:02 +0000 |
commit | 8804838053017431e64536b2b887a2add02cbe19 (patch) | |
tree | 43dce41960505e08e523045d17ba2e87ccbf552c /sys/dev/pci | |
parent | bd21f3cf09e5fa9b2898a5d693c6469975a13ba3 (diff) |
Don't use mtrr if we are not on i386/amd64.
ok kettenis@
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/drm/drm_memory.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/drm_memory.c b/sys/dev/pci/drm/drm_memory.c index 7b6f502a605..4b59315ace7 100644 --- a/sys/dev/pci/drm/drm_memory.c +++ b/sys/dev/pci/drm/drm_memory.c @@ -1,4 +1,4 @@ -/* $OpenBSD: drm_memory.c,v 1.22 2011/06/02 18:22:00 weerd Exp $ */ +/* $OpenBSD: drm_memory.c,v 1.23 2012/09/08 16:53:01 mpi Exp $ */ /*- *Copyright 1999 Precision Insight, Inc., Cedar Park, Texas. * Copyright 2000 VA Linux Systems, Inc., Sunnyvale, California. @@ -39,6 +39,10 @@ #include "drmP.h" +#if !defined(__amd64__) && !defined(__i386__) +#define DRM_NO_MTRR 1 +#endif + void* drm_alloc(size_t size) { |