diff options
author | Ulf Carlsson <md1ulfc@mdstud.chalmers.se> | 2000-07-05 23:42:08 +0000 |
---|---|---|
committer | Ulf Carlsson <md1ulfc@mdstud.chalmers.se> | 2000-07-05 23:42:08 +0000 |
commit | bae03c055d11da8172ac22e1f7f6104132138306 (patch) | |
tree | fd1b0449ed9211e1f9a30a20cd1c187941de2d68 /include/asm-mips | |
parent | bf09792f49c756e48a4642d2af2a92abdca4d4a6 (diff) |
Make flush_icache_page() nicer.
Diffstat (limited to 'include/asm-mips')
-rw-r--r-- | include/asm-mips/pgtable.h | 7 |
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) /* |