summaryrefslogtreecommitdiffstats
path: root/arch/sh/include/asm/entry-macros.S
diff options
context:
space:
mode:
authorMagnus Damm2009-02-27 08:41:17 +0100
committerPaul Mundt2009-02-27 08:41:17 +0100
commit0197f21ca5c5ed0df2a14a60ef073e8163e6533b (patch)
treed5068ed91e1e9b438d46934c50d97dcadd24e8bb /arch/sh/include/asm/entry-macros.S
parentsh: remove EXPEVT vector from stack on sh3/sh4/sh4a (diff)
downloadkernel-qcow2-linux-0197f21ca5c5ed0df2a14a60ef073e8163e6533b.tar.gz
kernel-qcow2-linux-0197f21ca5c5ed0df2a14a60ef073e8163e6533b.tar.xz
kernel-qcow2-linux-0197f21ca5c5ed0df2a14a60ef073e8163e6533b.zip
sh: prefetch early exception data on sh4/sh4a.
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 <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/include/asm/entry-macros.S')
-rw-r--r--arch/sh/include/asm/entry-macros.S5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/sh/include/asm/entry-macros.S b/arch/sh/include/asm/entry-macros.S
index 2dab0b8d9454..3a4752a65722 100644
--- a/arch/sh/include/asm/entry-macros.S
+++ b/arch/sh/include/asm/entry-macros.S
@@ -31,3 +31,8 @@
#endif
.endm
+#if defined(CONFIG_CPU_SH2A) || defined(CONFIG_CPU_SH4)
+# define PREF(x) pref @x
+#else
+# define PREF(x) nop
+#endif