From patchwork Tue Jun 8 02:00:13 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nobuhiro Iwamatsu X-Patchwork-Id: 104853 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o5828Ogq025812 for ; Tue, 8 Jun 2010 02:08:24 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752668Ab0FHCIK (ORCPT ); Mon, 7 Jun 2010 22:08:10 -0400 Received: from mail-iw0-f174.google.com ([209.85.214.174]:36049 "EHLO mail-iw0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752663Ab0FHCIH (ORCPT ); Mon, 7 Jun 2010 22:08:07 -0400 Received: by iwn37 with SMTP id 37so4101778iwn.19 for ; Mon, 07 Jun 2010 19:08:06 -0700 (PDT) Received: by 10.231.152.71 with SMTP id f7mr5436585ibw.128.1275962886558; Mon, 07 Jun 2010 19:08:06 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.39.139 with HTTP; Mon, 7 Jun 2010 19:00:13 -0700 (PDT) From: Nobuhiro Iwamatsu Date: Tue, 8 Jun 2010 11:00:13 +0900 X-Google-Sender-Auth: q2gBnd9irtUcBqTayKDTa0j_Rpo Message-ID: Subject: [PATCH 1/2] sh: Drop dependence for 29bit mode of trigger_address_error() To: Linux-sh Cc: Paul Mundt Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Tue, 08 Jun 2010 02:08:24 +0000 (UTC) diff --git a/arch/sh/include/asm/system_32.h b/arch/sh/include/asm/system_32.h index 51296b3..9bd2684 100644 --- a/arch/sh/include/asm/system_32.h +++ b/arch/sh/include/asm/system_32.h @@ -216,13 +216,12 @@ int handle_unaligned_access(insn_size_t instruction, struct pt_regs *regs, static inline void trigger_address_error(void) { - if (__in_29bit_mode()) - __asm__ __volatile__ ( - "ldc %0, sr\n\t" - "mov.l @%1, %0" - : - : "r" (0x10000000), "r" (0x80000001) - ); + __asm__ __volatile__ ( + "ldc %0, sr\n\t" + "mov.l @%1, %0" + : + : "r" (0x10000000), "r" (0x80000001) + ); }