diff options
author | Leonid Yegoshin <Leonid.Yegoshin@imgtec.com> | 2013-12-03 05:48:15 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-03-26 18:09:12 -0400 |
commit | 5b736cd243f942d474621a7521e08b34b8e4197b (patch) | |
tree | c5f061c2540671f2c68ace937ed111029cf48584 /arch/mips | |
parent | a6e18781c5b839dc5ad00a38303d101a0333965b (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>
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/include/asm/asm.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/mips/include/asm/asm.h b/arch/mips/include/asm/asm.h index 879691d194af..b79be18a9267 100644 --- a/arch/mips/include/asm/asm.h +++ b/arch/mips/include/asm/asm.h | |||
@@ -149,6 +149,13 @@ symbol = value | |||
149 | pref hint, addr; \ | 149 | pref hint, addr; \ |
150 | .set pop | 150 | .set pop |
151 | 151 | ||
152 | #define PREFE(hint, addr) \ | ||
153 | .set push; \ | ||
154 | .set mips0; \ | ||
155 | .set eva; \ | ||
156 | prefe hint, addr; \ | ||
157 | .set pop | ||
158 | |||
152 | #define PREFX(hint,addr) \ | 159 | #define PREFX(hint,addr) \ |
153 | .set push; \ | 160 | .set push; \ |
154 | .set mips4; \ | 161 | .set mips4; \ |
@@ -158,6 +165,7 @@ symbol = value | |||
158 | #else /* !CONFIG_CPU_HAS_PREFETCH */ | 165 | #else /* !CONFIG_CPU_HAS_PREFETCH */ |
159 | 166 | ||
160 | #define PREF(hint, addr) | 167 | #define PREF(hint, addr) |
168 | #define PREFE(hint, addr) | ||
161 | #define PREFX(hint, addr) | 169 | #define PREFX(hint, addr) |
162 | 170 | ||
163 | #endif /* !CONFIG_CPU_HAS_PREFETCH */ | 171 | #endif /* !CONFIG_CPU_HAS_PREFETCH */ |