Messages in this thread Patch in this message | | | Date | Tue, 14 Feb 2006 19:21:22 +0900 | From | KAMEZAWA Hiroyuki <> | Subject | Re: [PATCH] unify pfn_to_page take3 [7/23] arm26 pfn_to_page |
| |
arm26 can use generic funcs.
Signed-Off-By: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Index: testtree/include/asm-arm26/memory.h =================================================================== --- testtree.orig/include/asm-arm26/memory.h +++ testtree/include/asm-arm26/memory.h @@ -11,7 +11,6 @@ */ #ifndef __ASM_ARM_MEMORY_H #define __ASM_ARM_MEMORY_H - /* * User space: 26MB */ @@ -81,8 +80,7 @@ static inline void *phys_to_virt(unsigne * virt_to_page(k) convert a _valid_ virtual address to struct page * * virt_addr_valid(k) indicates whether a virtual address is valid */ -#define page_to_pfn(page) (((page) - mem_map) + PHYS_PFN_OFFSET) -#define pfn_to_page(pfn) ((mem_map + (pfn)) - PHYS_PFN_OFFSET) +#define ARCH_PFN_OFFSET (PHYS_PFN_OFFSET) #define pfn_valid(pfn) ((pfn) >= PHYS_PFN_OFFSET && (pfn) < (PHYS_PFN_OFFSET + max_mapnr))
#define virt_to_page(kaddr) (pfn_to_page(__pa(kaddr) >> PAGE_SHIFT)) @@ -98,4 +96,5 @@ static inline void *phys_to_virt(unsigne */ #define page_to_bus(page) (page_address(page))
+#include <asm-generic/memory_model.h> #endif - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |