LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Roman Zippel <zippel@linux-m68k.org>
To: linuxppc-dev@lists.linuxppc.org
Subject: [PATCH 7/7] use pfn_to_page
Date: Tue, 25 May 2004 02:29:30 +0200 (CEST)	[thread overview]
Message-ID: <Pine.LNX.4.58.0405250229230.19052@scrub.local> (raw)


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/

                 reply	other threads:[~2004-05-25  0:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.58.0405250229230.19052@scrub.local \
    --to=zippel@linux-m68k.org \
    --cc=linuxppc-dev@lists.linuxppc.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox