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-mips64/pgtable.h | |
parent | bf09792f49c756e48a4642d2af2a92abdca4d4a6 (diff) |
Make flush_icache_page() nicer.
Diffstat (limited to 'include/asm-mips64/pgtable.h')
-rw-r--r-- | include/asm-mips64/pgtable.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/asm-mips64/pgtable.h b/include/asm-mips64/pgtable.h index 6a3381aae..e3f688c8a 100644 --- a/include/asm-mips64/pgtable.h +++ b/include/asm-mips64/pgtable.h @@ -43,8 +43,13 @@ 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->virtual & PAGE_MASK) +#define flush_icache_page(vma, page) \ +do { \ + unsigned long addr; \ + addr = page_address(page); \ + _flush_cache_page(vma, addr); \ +} while (0) /* * Each address space has 2 4K pages as its page directory, giving 1024 |