Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753388AbaAQSud (ORCPT ); Fri, 17 Jan 2014 13:50:33 -0500 Received: from smtp.codeaurora.org ([198.145.11.231]:46456 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753214AbaAQSub (ORCPT ); Fri, 17 Jan 2014 13:50:31 -0500 Date: Fri, 17 Jan 2014 10:50:29 -0800 From: Stephen Boyd To: Christopher Covington Cc: Russell King , linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ARM: Make pgtbl macro more robust Message-ID: <20140117185029.GC13785@codeaurora.org> References: <1389015593-31716-1-git-send-email-cov@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1389015593-31716-1-git-send-email-cov@codeaurora.org> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/06, Christopher Covington wrote: > The pgtbl macro couldn't handle the specific > (TEXT_OFFSET - PG_DIR_SIZE) value that the combination of > MSM platforms and LPAE created: > > head.S:163: Error: invalid constant (203000) after fixup > > Regardless of whether this combination of configuration options > will work on currently support platforms at run time, make it > at least assemble properly. > > Signed-off-by: Christopher Covington Looks good to me. Reviewed-by: Stephen Boyd I think you can put it in the patch tracker. Russell? > --- > arch/arm/kernel/head.S | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/arch/arm/kernel/head.S b/arch/arm/kernel/head.S > index 9cf6063..af30cac 100644 > --- a/arch/arm/kernel/head.S > +++ b/arch/arm/kernel/head.S > @@ -52,7 +52,8 @@ > .equ swapper_pg_dir, KERNEL_RAM_VADDR - PG_DIR_SIZE > > .macro pgtbl, rd, phys > - add \rd, \phys, #TEXT_OFFSET - PG_DIR_SIZE > + add \rd, \phys, #TEXT_OFFSET > + sub \rd, \rd, #PG_DIR_SIZE > .endm > > /* -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/