Subject: [PATCH] compile fix for mm/r4xx0.c

From: Florian Lohoff <[email-masked]>
Date: Sat, 2 Dec 2000 13:28:41 +0100

Comments ?

Index: r4xx0.c
===================================================================
RCS file: /cvs/linux/arch/mips/mm/r4xx0.c,v
retrieving revision 1.45
diff -u -r1.45 arch/mips/mm/r4xx0.c
--- arch/mips/mm/r4xx0.c	2000/11/29 22:00:30	1.45
+++ arch/mips/mm/r4xx0.c	2000/12/02 12:21:06
@@ -1967,16 +1967,17 @@
 	if (!(vma->vm_flags & VM_EXEC))
 		return;
 
-	blast_icache16_page(address);
+	blast_icache16_page((unsigned long)page_address(page));
 }
 
 static void
 r4k_flush_icache_page_i32(struct vm_area_struct *vma, struct page *page)
 {
+	int address;
 	if (!(vma->vm_flags & VM_EXEC))
 		return;
 
-	address = KSEG0 + (address & PAGE_MASK & (dcache_size - 1));
+	address = KSEG0 + ((unsigned long)page_address(page) & PAGE_MASK & (dcache_size - 1));
 	blast_icache32_page_indexed(address);
 }
 
-- 
Florian Lohoff                  [email-masked]             +49-5201-669912
     Why is it called "common sense" when nobody seems to have any?