diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-mips/pgtable.h | 3 | ||||
-rw-r--r-- | include/asm-mips64/pgtable.h | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/include/asm-mips/pgtable.h b/include/asm-mips/pgtable.h index b2d3ed058..ad03fdc2a 100644 --- a/include/asm-mips/pgtable.h +++ b/include/asm-mips/pgtable.h @@ -42,7 +42,8 @@ extern void (*_flush_page_to_ram)(struct page * page); #define flush_page_to_ram(page) _flush_page_to_ram(page) #define flush_icache_range(start, end) flush_cache_all() -#define flush_icache_page(start,page) flush_cache_page(vma, page) + +#define flush_icache_page(vma, page) _flush_cache_page(vma, page->virtual & PAGE_MASK) /* diff --git a/include/asm-mips64/pgtable.h b/include/asm-mips64/pgtable.h index 0d9996a7c..6a3381aae 100644 --- a/include/asm-mips64/pgtable.h +++ b/include/asm-mips64/pgtable.h @@ -43,7 +43,7 @@ extern void (*_flush_page_to_ram)(struct page * page); #define flush_page_to_ram(page) _flush_page_to_ram(page) #define flush_icache_range(start, end) flush_cache_all() -#define flush_icache_page(vma, page) flush_cache_page(vma, page) +#define flush_icache_page(vma, page) flush_cache_page(vma, page->virtual & PAGE_MASK) /* |