From 8804838053017431e64536b2b887a2add02cbe19 Mon Sep 17 00:00:00 2001 From: Martin Pieuchot Date: Sat, 8 Sep 2012 16:53:02 +0000 Subject: Don't use mtrr if we are not on i386/amd64. ok kettenis@ --- sys/dev/pci/drm/drm_memory.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sys/dev/pci') 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) { -- cgit v1.2.3