]> git.karo-electronics.de Git - linux-beck.git/commit
MIPS: kernel: cpu-probe: Detect unique RI/XI exceptions
authorLeonid Yegoshin <Leonid.Yegoshin@imgtec.com>
Tue, 15 Jul 2014 13:09:57 +0000 (14:09 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 1 Aug 2014 22:06:40 +0000 (00:06 +0200)
commit6575b1d4173eaeff6742a2c6dcbd835bb052952b
tree786eada52d0db5a02411bb1aae5a138d4aacc782
parent5890f70f15c52d0204a578422f8da828a0ba1096
MIPS: kernel: cpu-probe: Detect unique RI/XI exceptions

Detect if the core supports unique exception codes for the
Read-Inhibit and Execute-Inhibit exceptions and set the
option accordingly. The RI/XI exception support is detected
by setting the 27th bit (IEC) of the PageGrain C0 register
and reading back the value of that register to verify the
bit is enabled.

Signed-off-by: Leonid Yegoshin <Leonid.Yegoshin@imgtec.com>
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/7340/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/mipsregs.h
arch/mips/kernel/cpu-probe.c