diff options
author | 2012-09-08 16:53:01 +0000 | |
---|---|---|
committer | 2012-09-08 16:53:01 +0000 | |
commit | c796cdb44e4e99078491457192d770afc53a3dca (patch) | |
tree | 58502898baa72673e98448b195d6ae6dda1fa9c0 | |
parent | Instead of having yet an other option to compile the drm code without agp (diff) | |
download | wireguard-openbsd-c796cdb44e4e99078491457192d770afc53a3dca.tar.xz wireguard-openbsd-c796cdb44e4e99078491457192d770afc53a3dca.zip |
Don't use mtrr if we are not on i386/amd64.
ok kettenis@
-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) { |