From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from scrub.xs4all.nl (scrub.xs4all.nl [194.109.195.176]) by ozlabs.org (Postfix) with ESMTP id 2FB0C683DB for ; Sun, 25 Sep 2005 08:44:38 +1000 (EST) Received: from roman (helo=localhost) by scrub.xs4all.nl with local-esmtp (Exim 3.36 #1 (Debian)) id 1EJIl2-0004zR-00 for ; Sun, 25 Sep 2005 00:44:36 +0200 Date: Sun, 25 Sep 2005 00:44:36 +0200 (CEST) From: Roman Zippel To: linuxppc-dev@ozlabs.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: [PATCH 7/8] apus: use pfn_to_page() for pmd_page() List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , pfn_to_page() does the same, but also takes care of the memory start if necessary. --- include/asm-ppc/pgtable.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux/include/asm-ppc/pgtable.h =================================================================== --- linux.orig/include/asm-ppc/pgtable.h 2005-09-23 16:19:20.000000000 +0200 +++ linux/include/asm-ppc/pgtable.h 2005-09-23 16:20:31.000000000 +0200 @@ -723,7 +723,7 @@ extern pgprot_t phys_mem_access_prot(str #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))