From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTP id 86320686BB for ; Mon, 7 Nov 2005 16:27:46 +1100 (EST) From: Benjamin Herrenschmidt To: Andrew Morton , Linus Torvalds Content-Type: text/plain Date: Mon, 07 Nov 2005 16:25:28 +1100 Message-Id: <1131341128.11406.17.camel@gaston> Mime-Version: 1.0 Cc: linuxppc-dev list Subject: [PATCH] ppc: Fix ppc32 build after 64K pages List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Oops, some last minute changes caused the 64K pages patch to break ppc32 build, this fixes it. Signed-off-by: Benjamin Herrenschmidt Index: linux-work/arch/powerpc/Kconfig =================================================================== --- linux-work.orig/arch/powerpc/Kconfig 2005-11-07 15:10:26.000000000 +1100 +++ linux-work/arch/powerpc/Kconfig 2005-11-07 15:42:06.000000000 +1100 @@ -605,6 +605,7 @@ config PPC_64K_PAGES bool "64k page size" + depends on PPC64 help This option changes the kernel logical page size to 64k. On machines without processor support for 64k pages, the kernel will simulate Index: linux-work/arch/powerpc/mm/ppc_mmu_32.c =================================================================== --- linux-work.orig/arch/powerpc/mm/ppc_mmu_32.c 2005-11-07 15:10:26.000000000 +1100 +++ linux-work/arch/powerpc/mm/ppc_mmu_32.c 2005-11-07 15:43:08.000000000 +1100 @@ -188,9 +188,9 @@ if (Hash == 0) return; - pmd = pmd_offset(pgd_offset(vma->vm_mm, address), address); + pmd = pmd_offset(pgd_offset(mm, ea), ea); if (!pmd_none(*pmd)) - add_hash_page(vma->vm_mm->context, address, pmd_val(*pmd)); + add_hash_page(mm->context, ea, pmd_val(*pmd)); } /*