summaryrefslogtreecommitdiff
path: root/include/asm-mips/pgtable.h
diff options
context:
space:
mode:
authorWilliam Lee Irwin III <wli@holomorphy.com>2004-10-19 18:28:49 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-10-19 18:28:49 -0700
commit57fcd1440fcb730b17325ea833affc0a836f4dfd (patch)
tree370aecbc737df8532d78b65bbf60d62e88cc21de /include/asm-mips/pgtable.h
parentcddb7e266c54820d02f31262a28254bec72654e2 (diff)
[PATCH] vm: convert users of remap_page_range() under include/asm-*/ to use remap_pfn_range()
This patch converts uses of remap_page_range() via io_remap_page_range() in include/asm-*/ to use remap_pfn_range(). io_remap_page_range() has a similar physical address overflow issue that needs to be addressed later. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-mips/pgtable.h')
-rw-r--r--include/asm-mips/pgtable.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/asm-mips/pgtable.h b/include/asm-mips/pgtable.h
index 9d5a8fad0949..c5d69bb707aa 100644
--- a/include/asm-mips/pgtable.h
+++ b/include/asm-mips/pgtable.h
@@ -245,7 +245,8 @@ static inline void update_mmu_cache(struct vm_area_struct *vma,
*/
#define HAVE_ARCH_UNMAPPED_AREA
-#define io_remap_page_range remap_page_range
+#define io_remap_page_range(vma, vaddr, paddr, size, prot) \
+ remap_pfn_range(vma, vaddr, (paddr) >> PAGE_SHIFT, size, prot)
/*
* No page table caches to initialise