2.4.19, PPC and AGP

From: Wojciech \ (cieciwa@alpha.zarz.agh.edu.pl)
Date: Fri Sep 13 2002 - 04:35:56 EST


Hi,

I try to compile 2.4.19 [2.4.20-pre7 too] on PPC.
But in file drivers/char/agp/agpgart_be.c in function flush_cache
line 68-86 isn't defined PowerPC.

Thanx.
                                        Sas.
Here is small patch to fix this:

--- linux-2.4.19/drivers/char/agp/agpgart_be.c.org Fri Sep 13 10:26:51 2002
+++ linux-2.4.19/drivers/char/agp/agpgart_be.c Fri Sep 13 10:26:29 2002
@@ -69,7 +69,7 @@
 {
 #if defined(__i386__) || defined(__x86_64__)
         asm volatile ("wbinvd":::"memory");
-#elif defined(__alpha__) || defined(__ia64__) || defined(__sparc__)
+#elif defined(__alpha__) || defined(__ia64__) || defined(__sparc__) || defined(__powerpc__)
         /* ??? I wonder if we'll really need to flush caches, or if the
            core logic can manage to keep the system coherent. The ARM
            speaks only of using `cflush' to get things in memory in

-- 
{Wojciech 'Sas' Cieciwa}  {Member of PLD Team                               }
{e-mail: cieciwa@alpha.zarz.agh.edu.pl, http://www2.zarz.agh.edu.pl/~cieciwa}

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Sep 15 2002 - 22:00:32 EST