Re: [PATCH 1/4] io_remap_pfn_range: add for all arch-es

Randy.Dunlap
2005-03-18T23:19:52Z

[-- Attachment #1: Type: text/plain, Size: 194 bytes --]

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

[-- Attachment #2: ioremap_ppc_shift.patch --]
[-- Type: text/x-patch, Size: 792 bytes --]

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) \