* [RFC][PATCH] unify pfn_to_page [11/25] m68k pfn_to_page/page_to_pfn
@ 2006-02-06 11:04 KAMEZAWA Hiroyuki
0 siblings, 0 replies; only message in thread
From: KAMEZAWA Hiroyuki @ 2006-02-06 11:04 UTC (permalink / raw)
To: Linux Kernel Mailing List
Complicated....memmap is not in order ?
Don't use generic ones by defining ARCH_HAS_PFN_PAGE
Signed-Off-By: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Index: cleanup_pfn_page/include/asm-m68k/page.h
===================================================================
--- cleanup_pfn_page.orig/include/asm-m68k/page.h
+++ cleanup_pfn_page/include/asm-m68k/page.h
@@ -159,6 +159,7 @@ static inline void *__va(unsigned long x
* TODO: implement (fast) pfn<->pgdat_idx conversion functions, this makes lots
* of the shifts unnecessary.
*/
+#define ARCH_HAS_PFN_PAGE
#define virt_to_pfn(kaddr) (__pa(kaddr) >> PAGE_SHIFT)
#define pfn_to_virt(pfn) __va((pfn) << PAGE_SHIFT)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-02-06 11:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-06 11:04 [RFC][PATCH] unify pfn_to_page [11/25] m68k 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
all inboxes | Powered by JetHome®