]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: r4kcache: Add EVA case for protected_writeback_dcache_line
authorMarkos Chandras <markos.chandras@imgtec.com>
Wed, 5 Nov 2014 08:25:37 +0000 (08:25 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 24 Nov 2014 06:44:04 +0000 (07:44 +0100)
commitf62fa89b457e1332a8089d007aef45f64163bb53
treec7b79fe22f2b864d082ad7c685b3dfc66d93af5e
parent3cd47892eff66b8ad740c764fb97fcd0c5ed5d84
MIPS: r4kcache: Add EVA case for protected_writeback_dcache_line

Commit c945597543018 ("MIPS: asm: r4kcache: Add EVA cache flushing
functions") added cache function for EVA using the cachee instruction.
However, it didn't add a case for the protected_writeback_dcache_line.
mips_dsemul() calls r4k_flush_cache_sigtramp() which in turn uses
the protected_writeback_dcache_line() to flush the trampoline code
back to memory. This used the wrong "cache" instruction leading to
random userland crashes on non-FPU cores.

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Cc: <stable@vger.kernel.org> # v3.15+
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/8331/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/r4kcache.h