Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752749AbaFPNtt (ORCPT ); Mon, 16 Jun 2014 09:49:49 -0400 Received: from cam-admin0.cambridge.arm.com ([217.140.96.50]:51214 "EHLO cam-admin0.cambridge.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752060AbaFPNts (ORCPT ); Mon, 16 Jun 2014 09:49:48 -0400 Date: Mon, 16 Jun 2014 14:49:08 +0100 From: Will Deacon To: Wang Weidong Cc: "linux@arm.linux.org.uk" , "gregory.clement@free-electrons.com" , "nico@linaro.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] ARM: Thumb-2: Fix out-of-range offset for Thumb-2 in, proc-macros.S Message-ID: <20140616134908.GI16758@arm.com> References: <5396ACF1.1020107@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5396ACF1.1020107@huawei.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 10, 2014 at 08:00:01AM +0100, Wang Weidong wrote: > The STR Instruction Encoding T4 points that the is in the > range 0-255.So split the instruction into two for Thumb-2. Just > like commit 874d5d3ccc("ARM: 6623/1: Thumb-2: Fix out-of-range > offset for Thumb-2 in proc-v7.S"). > > Signed-off-by: Wang Weidong > --- > arch/arm/mm/proc-macros.S | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/arch/arm/mm/proc-macros.S b/arch/arm/mm/proc-macros.S > index ee1d805..63f710c 100644 > --- a/arch/arm/mm/proc-macros.S > +++ b/arch/arm/mm/proc-macros.S > @@ -252,7 +252,9 @@ > tst r3, #L_PTE_PRESENT | L_PTE_YOUNG @ present and young? > movne r2, #0 @ no -> fault > > - str r2, [r0, #2048]! @ hardware version > + ARM( str r2, [r0, #2048]! ) @ hardware version > + THUMB( add r0, r0, #2048 ) > + THUMB( str r2, [r0] ) > mov ip, #0 > mcr p15, 0, r0, c7, c10, 1 @ clean L1 D line > mcr p15, 0, ip, c7, c10, 4 @ data write barrier AFAICT this is in xscale_set_pte_ext_epilogue which should only be built as ARM. Are you seeing a real issue here? Will -- 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/