LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 7/7] use pfn_to_page
@ 2004-05-25  0:29 Roman Zippel
  0 siblings, 0 replies; only message in thread
From: Roman Zippel @ 2004-05-25  0:29 UTC (permalink / raw)
  To: linuxppc-dev


pfn_to_page() does the same, but also takes care of the memory start
if necessary.

Index: 2.6/include/asm-ppc/pgtable.h
diff -u 2.6/include/asm-ppc/pgtable.h:1.1.1.3 2.6/include/asm-ppc/pgtable.h:1.4
--- 2.6/include/asm-ppc/pgtable.h:1.1.1.3	Sat Feb 21 12:45:22 2004
+++ 2.6/include/asm-ppc/pgtable.h	Sat Feb 21 13:42:00 2004
@@ -566,7 +566,7 @@
 #define pmd_page_kernel(pmd)	\
 	((unsigned long) __va(pmd_val(pmd) & PAGE_MASK))
 #define pmd_page(pmd)		\
-	(mem_map + (pmd_val(pmd) >> PAGE_SHIFT))
+	pfn_to_page(pmd_val(pmd) >> PAGE_SHIFT)
 #else
 #define pmd_page_kernel(pmd)	\
 	((unsigned long) (pmd_val(pmd) & PAGE_MASK))

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-05-25  0:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-25  0:29 [PATCH 7/7] use pfn_to_page Roman Zippel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox