]> asedeno.scripts.mit.edu Git - linux.git/commit
MIPS: Add GINVT instruction helpers
authorPaul Burton <paul.burton@mips.com>
Sat, 2 Feb 2019 01:43:27 +0000 (01:43 +0000)
committerPaul Burton <paul.burton@mips.com>
Mon, 4 Feb 2019 18:56:35 +0000 (10:56 -0800)
commit535113896e802e9f8f92c05a887d1761c34ae903
tree4d0b573a5ad008f478f806e585aec22db77e03cc
parent0b317c389c6771cbe1c5a12fe9322285a808a9bd
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
arch/mips/Makefile
arch/mips/include/asm/barrier.h
arch/mips/include/asm/ginvt.h [new file with mode: 0644]
arch/mips/include/asm/mipsregs.h