MIPS: Add GINVT instruction helpers
Add a family of ginvt_* functions making it easy to emit a GINVT
instruction to globally invalidate TLB entries. We make use of the
_ASM_MACRO infrastructure to support emitting the instructions even if
the assembler isn't new enough to support them natively.
An associated STYPE_GINV definition & sync_ginv() function are added to
emit a sync instruction of type 0x14, which operates as a completion
barrier for these new GINVT (and GINVI) instructions.
Signed-off-by:
Paul Burton <paul.burton@mips.com>
Cc: linux-mips@vger.kernel.org
Showing
- arch/mips/Makefile 2 additions, 0 deletionsarch/mips/Makefile
- arch/mips/include/asm/barrier.h 19 additions, 0 deletionsarch/mips/include/asm/barrier.h
- arch/mips/include/asm/ginvt.h 56 additions, 0 deletionsarch/mips/include/asm/ginvt.h
- arch/mips/include/asm/mipsregs.h 7 additions, 0 deletionsarch/mips/include/asm/mipsregs.h
Loading
Please register or sign in to comment