Skip to content

Commit

Permalink
MIPS: asm: Add prefetch instruction for EVA
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Leonid Yegoshin authored and Ralf Baechle committed Mar 26, 2014
1 parent a6e1878 commit 5b736cd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions arch/mips/include/asm/asm.h
Original file line number Diff line number Diff line change
Expand Up @@ -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; \
Expand All @@ -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 */
Expand Down

0 comments on commit 5b736cd

Please sign in to comment.