From patchwork Wed Sep 7 15:59:18 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dave Martin X-Patchwork-Id: 3964 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id D4CEF23FA0 for ; Wed, 7 Sep 2011 15:59:38 +0000 (UTC) Received: from mail-fx0-f52.google.com (mail-fx0-f52.google.com [209.85.161.52]) by fiordland.canonical.com (Postfix) with ESMTP id 65F8CA183E2 for ; Wed, 7 Sep 2011 15:59:38 +0000 (UTC) Received: by mail-fx0-f52.google.com with SMTP id 18so958886fxd.11 for ; Wed, 07 Sep 2011 08:59:38 -0700 (PDT) Received: by 10.223.24.21 with SMTP id t21mr385793fab.24.1315411178273; Wed, 07 Sep 2011 08:59:38 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.152.11.8 with SMTP id m8cs144816lab; Wed, 7 Sep 2011 08:59:38 -0700 (PDT) Received: by 10.204.143.151 with SMTP id v23mr3946278bku.65.1315411177879; Wed, 07 Sep 2011 08:59:37 -0700 (PDT) Received: from mail-wy0-f178.google.com (mail-wy0-f178.google.com [74.125.82.178]) by mx.google.com with ESMTPS id y7si806133weq.38.2011.09.07.08.59.37 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 07 Sep 2011 08:59:37 -0700 (PDT) Received-SPF: neutral (google.com: 74.125.82.178 is neither permitted nor denied by best guess record for domain of dave.martin@linaro.org) client-ip=74.125.82.178; Authentication-Results: mx.google.com; spf=neutral (google.com: 74.125.82.178 is neither permitted nor denied by best guess record for domain of dave.martin@linaro.org) smtp.mail=dave.martin@linaro.org Received: by mail-wy0-f178.google.com with SMTP id 19so6494493wyg.37 for ; Wed, 07 Sep 2011 08:59:37 -0700 (PDT) Received: by 10.227.201.137 with SMTP id fa9mr449342wbb.54.1315411177569; Wed, 07 Sep 2011 08:59:37 -0700 (PDT) Received: from e103592.peterhouse.linaro.org (fw-lnat.cambridge.arm.com [217.140.96.63]) by mx.google.com with ESMTPS id fo14sm903031wbb.19.2011.09.07.08.59.35 (version=SSLv3 cipher=OTHER); Wed, 07 Sep 2011 08:59:36 -0700 (PDT) From: Dave Martin To: linux-arm-kernel@lists.infradead.org Cc: patches@linaro.org, Haojian Zhuang , Eric Miao Subject: [RFC PATCH 3/3] ARM: pxa/pj4: Port problematic pj4 support code to v7/Thumb-2 Date: Wed, 7 Sep 2011 16:59:18 +0100 Message-Id: <1315411158-17479-4-git-send-email-dave.martin@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1315411158-17479-1-git-send-email-dave.martin@linaro.org> References: <1315411158-17479-1-git-send-email-dave.martin@linaro.org> 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 + "isb\n\t" +#else "mrc p15, 0, %0, c1, c0, 2\n\t" "mov %0, %0\n\t" "sub pc, pc, #4\n\t" +#endif : "=r" (temp) : "r" (value)); }