From 4b04c0cc45f7a89c757ce442e4f2742b9d3aa293 Mon Sep 17 00:00:00 2001 From: Thomas Hellstrom Date: Mon, 30 Oct 2006 11:18:44 +0100 Subject: Bugzilla Bug #8819 Build fixes for powerpc. Reported by Katerina Barone-Adesi --- linux-core/drm_ttm.c | 2 +- linux-core/drm_vm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/linux-core/drm_ttm.c b/linux-core/drm_ttm.c index 13bec48bb..931972af0 100644 --- a/linux-core/drm_ttm.c +++ b/linux-core/drm_ttm.c @@ -30,7 +30,7 @@ static void drm_ttm_ipi_handler(void *null) { - wbinvd(); + flush_agp_cache(); } static void drm_ttm_cache_flush(void) diff --git a/linux-core/drm_vm.c b/linux-core/drm_vm.c index fd6e89d88..6eb996adb 100644 --- a/linux-core/drm_vm.c +++ b/linux-core/drm_vm.c @@ -57,7 +57,7 @@ pgprot_t drm_io_prot(uint32_t map_type, struct vm_area_struct *vma) } #elif defined(__powerpc__) pgprot_val(tmp) |= _PAGE_NO_CACHE; - if (map->type == _DRM_REGISTERS) + if (map_type == _DRM_REGISTERS) pgprot_val(tmp) |= _PAGE_GUARDED; #endif #if defined(__ia64__) -- cgit v1.2.3