Hi subject told all. Once there, put they inside the right #ifdef Later, Juan. Index: arch/mips64/mm/c-r4k.c =================================================================== RCS file: /home/cvs/linux/arch/mips64/mm/c-r4k.c,v retrieving revision 1.1.2.9 diff -u -r1.1.2.9 c-r4k.c --- arch/mips64/mm/c-r4k.c 18 Dec 2002 22:43:22 -0000 1.1.2.9 +++ arch/mips64/mm/c-r4k.c 19 Dec 2002 19:48:44 -0000 @@ -948,12 +948,13 @@ static void r4k_dma_cache_wback_inv_pc(unsigned long addr, unsigned long size) { unsigned long end, a; - unsigned int flags; if (size >= dcache_size) { flush_cache_l1(); } else { #ifdef R4600_V2_HIT_CACHEOP_WAR + unsigned long flags; + /* Workaround for R4600 bug. See comment in <asm/war>. */ __save_and_cli(flags); *(volatile unsigned long *)KSEG1; @@ -994,12 +995,13 @@ static void r4k_dma_cache_inv_pc(unsigned long addr, unsigned long size) { unsigned long end, a; - unsigned int flags; if (size >= dcache_size) { flush_cache_l1(); } else { #ifdef R4600_V2_HIT_CACHEOP_WAR + unsigned long flags; + /* Workaround for R4600 bug. See comment in <asm/war>. */ __save_and_cli(flags); *(volatile unsigned long *)KSEG1; -- In theory, practice and theory are the same, but in practice they are different -- Larry McVoy