From mboxrd@z Thu Jan 1 00:00:00 1970 From: dave.martin@linaro.org (Dave Martin) Date: Thu, 8 Sep 2011 12:35:11 +0100 Subject: [RFC PATCH 3/3] ARM: pxa/pj4: Port problematic pj4 support code to v7/Thumb-2 In-Reply-To: <4E68A2A6.9080105@ru.mvista.com> References: <1315411158-17479-1-git-send-email-dave.martin@linaro.org> <1315411158-17479-4-git-send-email-dave.martin@linaro.org> <4E68A2A6.9080105@ru.mvista.com> Message-ID: <20110908113511.GD2070@arm.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Thu, Sep 08, 2011 at 03:10:30PM +0400, Sergei Shtylyov wrote: > Hello. > > On 07-09-2011 19:59, Dave Martin wrote: > > >The iwmmxt code contains some code to implement a pseudo-ISB, but > >this is not buildable for Thumb-2. > > >This patch replaces the pseudo-ISB with a real one on v7 and above. > > >Signed-off-by: Dave Martin > >--- > > arch/arm/kernel/pj4-cp0.c | 4 ++++ > > 1 files changed, 4 insertions(+), 0 deletions(-) > > >diff --git a/arch/arm/kernel/pj4-cp0.c b/arch/arm/kernel/pj4-cp0.c > >index a4b1b07..5117d9d 100644 > >--- a/arch/arm/kernel/pj4-cp0.c > >+++ b/arch/arm/kernel/pj4-cp0.c > >@@ -66,9 +66,13 @@ static void __init pj4_cp_access_write(u32 value) > > > > __asm__ __volatile__ ( > > "mcr p15, 0, %1, c1, c0, 2\n\t" > >+#ifdef __LINUX_ARM_ARCH__ >= 7 > > Maybe #if? > > WBR, Sergei Hmmm, yes. With a bit of luck, we may be able to get rid of the conditional anyway. Cheers ---Dave