lkml.org 
[lkml]   [2005]   [Mar]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [PATCH 1/4] io_remap_pfn_range: add for all arch-es
Paul Mackerras wrote:
>
> Just by inspection, this looks like pfn should be changed to
> paddr64 >> PAGE_SHIFT in that last line.
>
> Paul.

Agreed, thank you. Patch is attached.

--
~Randy

Fix asm-ppc argument, spotted by Paul Mackerras.

Signed-off-by: Randy Dunlap <rddunlap@osdl.org>

diffstat:=
include/asm-ppc/pgtable.h | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)

diff -Naurp ./include/asm-ppc/pgtable.h~ioremap_ppc_shift ./include/asm-ppc/pgtable.h
--- ./include/asm-ppc/pgtable.h~ioremap_ppc_shift 2005-03-18 10:20:47.000000000 -0800
+++ ./include/asm-ppc/pgtable.h 2005-03-18 15:15:56.000000000 -0800
@@ -743,7 +743,7 @@ static inline int io_remap_pfn_range(str
pgprot_t prot)
{
phys_addr_t paddr64 = fixup_bigphys_addr(pfn << PAGE_SHIFT, size);
- return remap_pfn_range(vma, vaddr, pfn, size, prot);
+ return remap_pfn_range(vma, vaddr, paddr64 >> PAGE_SHIFT, size, prot);
}
#else
#define io_remap_page_range(vma, vaddr, paddr, size, prot) \
\
 
 \ /
  Last update: 2005-03-22 14:11    [W:0.115 / U:0.396 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site