提交 5b736cd2 编写于 作者: L Leonid Yegoshin 提交者: Ralf Baechle

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: NLeonid Yegoshin <Leonid.Yegoshin@imgtec.com>
Signed-off-by: NMarkos Chandras <markos.chandras@imgtec.com>
上级 a6e18781
...@@ -149,6 +149,13 @@ symbol = value ...@@ -149,6 +149,13 @@ symbol = value
pref hint, addr; \ pref hint, addr; \
.set pop .set pop
#define PREFE(hint, addr) \
.set push; \
.set mips0; \
.set eva; \
prefe hint, addr; \
.set pop
#define PREFX(hint,addr) \ #define PREFX(hint,addr) \
.set push; \ .set push; \
.set mips4; \ .set mips4; \
...@@ -158,6 +165,7 @@ symbol = value ...@@ -158,6 +165,7 @@ symbol = value
#else /* !CONFIG_CPU_HAS_PREFETCH */ #else /* !CONFIG_CPU_HAS_PREFETCH */
#define PREF(hint, addr) #define PREF(hint, addr)
#define PREFE(hint, addr)
#define PREFX(hint, addr) #define PREFX(hint, addr)
#endif /* !CONFIG_CPU_HAS_PREFETCH */ #endif /* !CONFIG_CPU_HAS_PREFETCH */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册