From patchwork Mon Feb 23 07:19:31 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 8380 X-Patchwork-Delegate: lethal@linux-sh.org Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n1N7LqmX002599 for ; Mon, 23 Feb 2009 07:21:52 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752289AbZBWHVs (ORCPT ); Mon, 23 Feb 2009 02:21:48 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752335AbZBWHVs (ORCPT ); Mon, 23 Feb 2009 02:21:48 -0500 Received: from wa-out-1112.google.com ([209.85.146.180]:30239 "EHLO wa-out-1112.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752289AbZBWHVr (ORCPT ); Mon, 23 Feb 2009 02:21:47 -0500 Received: by wa-out-1112.google.com with SMTP id v33so1033084wah.21 for ; Sun, 22 Feb 2009 23:21:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:date:message-id :subject; bh=KxIkEx2QQMc8rvKrtE9OrqPMpTBqdi6iA56dmPqatc4=; b=nBsupOBSIQfmgZoxD8AeRFYuFQiisOqwoL/9k6SmGX1AxNDIIvSxuQ5TGuI4yow2Nm qS6V+8o1Z6MpwXDX3RCeBauM3jspU8vRjNrbml3JJ2unW036J1SN5wW0zEyTFhvvdZCw hQpU4mikj6zHdakbPb7AcqsR5YBZPyip7omUY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:date:message-id:subject; b=USoXZf0u/jVUivxu+LWO0gO+RkmAEYJuR/A4x07S9fCZFuRp2tSPXvQyg7c65SRZ1p 0xs2UgUpihpBk9fUkLbeQ2lm67tL5fL+MQeooEE0XI5xocoAyqZX+OgX9j2RWoBSHMVd SxIUnfVyZjPOnAcew+cSQK5Vj2gLzHp2ZJ/BA= Received: by 10.114.180.1 with SMTP id c1mr1543652waf.206.1235373705470; Sun, 22 Feb 2009 23:21:45 -0800 (PST) Received: from rx1.opensource.se (mailhost.igel.co.jp [219.106.231.130]) by mx.google.com with ESMTPS id y25sm11117829pod.10.2009.02.22.23.21.43 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 22 Feb 2009 23:21:45 -0800 (PST) From: Magnus Damm To: linux-sh@vger.kernel.org Cc: Magnus Damm , lethal@linux-sh.org Date: Mon, 23 Feb 2009 16:19:31 +0900 Message-Id: <20090223071931.12300.72669.sendpatchset@rx1.opensource.se> Subject: [PATCH 04/04] sh: prefetch early exception data on sh3/sh4/sh4a Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org From: Magnus Damm Prefetch early exception data. There is unused space in our exception handler cache line anyway, so this is almost free. Signed-off-by: Magnus Damm --- arch/sh/kernel/cpu/sh3/entry.S | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- 0007/arch/sh/kernel/cpu/sh3/entry.S +++ work/arch/sh/kernel/cpu/sh3/entry.S 2009-02-23 14:18:48.000000000 +0900 @@ -463,9 +463,11 @@ tlb_miss: sts pr, k3 ! save original pr value in k3 handle_exception: + mova exception_data, k0 + ! Setup stack and save DSP context (k0 contains original r15 on return) bsr prepare_stack_save_dsp - nop + pref @k0 ! Save registers / Switch to bank 0 mov.l 5f, k2 ! vector register address @@ -556,10 +558,11 @@ ENTRY(handle_interrupt) 11: #endif /* defined(CONFIG_KGDB) */ sts pr, k3 ! save original pr value in k3 + mova exception_data, k0 ! Setup stack and save DSP context (k0 contains original r15 on return) bsr prepare_stack_save_dsp - nop + pref @k0 ! Save registers / Switch to bank 0 bsr save_regs ! needs original pr value in k3