summaryrefslogtreecommitdiffstats
path: root/include/asm-mips/pgtable.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-mips/pgtable.h')
-rw-r--r--include/asm-mips/pgtable.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/asm-mips/pgtable.h b/include/asm-mips/pgtable.h
index ad03fdc2a..f72b7ddd3 100644
--- a/include/asm-mips/pgtable.h
+++ b/include/asm-mips/pgtable.h
@@ -43,7 +43,12 @@ extern void (*_flush_page_to_ram)(struct page * page);
#define flush_icache_range(start, end) flush_cache_all()
-#define flush_icache_page(vma, page) _flush_cache_page(vma, page->virtual & PAGE_MASK)
+#define flush_icache_page(vma, page) \
+do { \
+ unsigned long addr; \
+ addr = page_address(page); \
+ _flush_cache_page(vma, addr); \
+} while (0)
/*