* [RFC][PATCH] unify pfn_to_page [4/25] arm26 pfn_to_page/page_to_pfn
@ 2006-02-06 10:52 KAMEZAWA Hiroyuki
0 siblings, 0 replies; only message in thread
From: KAMEZAWA Hiroyuki @ 2006-02-06 10:52 UTC (permalink / raw)
To: Linux Kernel Mailing List
arm26 can use generic ones.
Signed-Off-By: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Index: cleanup_pfn_page/include/asm-arm26/memory.h
===================================================================
--- cleanup_pfn_page.orig/include/asm-arm26/memory.h
+++ cleanup_pfn_page/include/asm-arm26/memory.h
@@ -81,9 +81,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 pfn_valid(pfn) ((pfn) >= PHYS_PFN_OFFSET && (pfn) < (PHYS_PFN_OFFSET + max_mapnr))
+#define ARCH_PFN_OFFSET (PHYS_PFN_OFFSET)
#define virt_to_page(kaddr) (pfn_to_page(__pa(kaddr) >> PAGE_SHIFT))
#define virt_addr_valid(kaddr) ((int)(kaddr) >= PAGE_OFFSET && (int)(kaddr) < (unsigned long)high_memory)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-02-06 10:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-06 10:52 [RFC][PATCH] unify pfn_to_page [4/25] arm26 pfn_to_page/page_to_pfn KAMEZAWA Hiroyuki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox