aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonid Yegoshin <Leonid.Yegoshin@imgtec.com>2013-12-03 10:48:15 +0000
committerRalf Baechle <ralf@linux-mips.org>2014-03-26 23:09:12 +0100
commit5b736cd243f942d474621a7521e08b34b8e4197b (patch)
treec5f061c2540671f2c68ace937ed111029cf48584
parenta6e18781c5b839dc5ad00a38303d101a0333965b (diff)
MIPS: asm: Add prefetch instruction for EVA
EVA can use the PREFE instruction to perform the virtual address translation using the user mapping of the address rather than the kernel mapping. Signed-off-by: Leonid Yegoshin <Leonid.Yegoshin@imgtec.com> Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
-rw-r--r--arch/mips/include/asm/asm.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/mips/include/asm/asm.h b/arch/mips/include/asm/asm.h
index 879691d194a..b79be18a926 100644
--- a/arch/mips/include/asm/asm.h
+++ b/arch/mips/include/asm/asm.h
@@ -149,6 +149,13 @@ symbol = value
pref hint, addr; \
.set pop
+#define PREFE(hint, addr) \
+ .set push; \
+ .set mips0; \
+ .set eva; \
+ prefe hint, addr; \
+ .set pop
+
#define PREFX(hint,addr) \
.set push; \
.set mips4; \
@@ -158,6 +165,7 @@ symbol = value
#else /* !CONFIG_CPU_HAS_PREFETCH */
#define PREF(hint, addr)
+#define PREFE(hint, addr)
#define PREFX(hint, addr)
#endif /* !CONFIG_CPU_HAS_PREFETCH */