Re: 2.6.10-rc2-mm2

From: William Lee Irwin III
Date: Sat Nov 20 2004 - 13:35:30 EST


On Thu, Nov 18, 2004 at 02:15:38AM -0800, Andrew Morton wrote:
> +frv-kill-off-highmem_start_page.patch
> +frv-remove-obsolete-hardirq-stuff-from-includes.patch
> +further-nommu-changes.patch
> +further-nommu-proc-changes.patch
> +frv-arch-nommu-changes.patch

This patch converts FRV to use remap_pfn_range() in its
io_remap_page_range() function.


Index: mm2-2.6.10-rc2/include/asm-frv/pgtable.h
===================================================================
--- mm2-2.6.10-rc2.orig/include/asm-frv/pgtable.h 2004-11-20 00:57:54.000000000 -0800
+++ mm2-2.6.10-rc2/include/asm-frv/pgtable.h 2004-11-20 10:27:32.173203883 -0800
@@ -442,7 +442,8 @@
#define PageSkip(page) (0)
#define kern_addr_valid(addr) (1)

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

#define __HAVE_ARCH_PTEP_TEST_AND_CLEAR_YOUNG
#define __HAVE_ARCH_PTEP_TEST_AND_CLEAR_DIRTY
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/