]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: XPA: Standardise readx/writex accessors
authorJames Hogan <jhogan@kernel.org>
Wed, 22 Nov 2017 11:30:32 +0000 (11:30 +0000)
committerJames Hogan <jhogan@kernel.org>
Mon, 22 Jan 2018 20:52:10 +0000 (20:52 +0000)
commitdddc1d1562490b3966e51793e415a6c42bde1111
treef35a0346bc9feb280d30732d852794451d07a638
parent0909f5f32fea9c6deaffd3f18e691f288befc850
MIPS: XPA: Standardise readx/writex accessors

Now that we are using assembler macros to implement XPA instructions on
toolchains which don't support them, pass Cop0 register names to the
__{readx,writex}_32bit_c0_register macros in $n format rather than
register numbers. Also pass a register select which may be useful in
future (for example for MemoryMapID field of WatchHi registers on
I6500).

This is to make them consistent with the normal Cop0 register access
macros which they were originally based on.

Signed-off-by: James Hogan <jhogan@kernel.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/17777/
arch/mips/include/asm/mipsregs.h