summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2000-12-02 21:44:21 +0000
committerRalf Baechle <ralf@linux-mips.org>2000-12-02 21:44:21 +0000
commit293f38b839c1b9ac71dbf14ae9575a017e7406ae (patch)
treef49b2edd904074bf08db135d1f3b29bcb1dcca04
parent2d79f2e9bf953e405a622e7d602b12663234bf13 (diff)
Fix r4k_flush_icache_page_i16, r4k_flush_icache_page_i32 compilation.
Obviously the last commit was never tried to be compiled ...
-rw-r--r--arch/mips/mm/r4xx0.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/mips/mm/r4xx0.c b/arch/mips/mm/r4xx0.c
index a39794cce..3b709055a 100644
--- a/arch/mips/mm/r4xx0.c
+++ b/arch/mips/mm/r4xx0.c
@@ -1967,16 +1967,17 @@ r4k_flush_icache_page_i16(struct vm_area_struct *vma, struct page *page)
if (!(vma->vm_flags & VM_EXEC))
return;
- blast_icache16_page(address);
+ blast_icache16_page((unsigned long)page_address(page));
}
static void
r4k_flush_icache_page_i32(struct vm_area_struct *vma, struct page *page)
{
+ int address;
if (!(vma->vm_flags & VM_EXEC))
return;
- address = KSEG0 + (address & PAGE_MASK & (dcache_size - 1));
+ address = KSEG0 + ((unsigned long)page_address(page) & PAGE_MASK & (dcache_size - 1));
blast_icache32_page_indexed(address);
}