patch-2.4.21 linux-2.4.21/include/asm-parisc/pgalloc.h

Next file: linux-2.4.21/include/asm-parisc/pgtable.h
Previous file: linux-2.4.21/include/asm-parisc/pdc_chassis.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.20/include/asm-parisc/pgalloc.h linux-2.4.21/include/asm-parisc/pgalloc.h
@@ -111,18 +111,22 @@
 	}
 }
 
+extern void __flush_dcache_page(struct page *page);
 static inline void flush_dcache_page(struct page *page)
 {
 	if (page->mapping && !page->mapping->i_mmap &&
 			!page->mapping->i_mmap_shared) {
 		set_bit(PG_dcache_dirty, &page->flags);
 	} else {
-		flush_kernel_dcache_page(page_address(page));
+		__flush_dcache_page(page);
 	}
 }
 
 #define flush_icache_page(vma,page)	do { flush_kernel_dcache_page(page_address(page)); flush_kernel_icache_page(page_address(page)); } while (0)
 
+#define flush_icache_user_range(vma, page, addr, len) \
+	flush_user_icache_range(addr, addr + len);
+
 #define flush_icache_range(s,e)		do { flush_kernel_dcache_range_asm(s,e); flush_kernel_icache_range_asm(s,e); } while (0)
 
 /* TLB flushing routines.... */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)