]> git.karo-electronics.de Git - karo-tx-linux.git/commit
MIPS: Fix mips_atomic_set() with EVA
authorJames Hogan <james.hogan@imgtec.com>
Wed, 31 May 2017 15:19:49 +0000 (16:19 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 28 Jun 2017 10:22:40 +0000 (12:22 +0200)
commit4915e1b043d6286928207b1f6968197b50407294
treed931d80c381c3f3da1796cd2c0998dbeba186660
parent49955d84cd9ccdca5a16a495e448e1a06fad9e49
MIPS: Fix mips_atomic_set() with EVA

EVA linked loads (LLE) and conditional stores (SCE) should be used on
EVA kernels for the MIPS_ATOMIC_SET operation of the sysmips system
call, or else the atomic set will apply to the kernel view of the
virtual address space (potentially unmapped on EVA kernels) rather than
the user view (TLB mapped).

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: linux-mips@linux-mips.org
Cc: <stable@vger.kernel.org> # 3.15.x-
Patchwork: https://patchwork.linux-mips.org/patch/16151/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/syscall.c