]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Add and use CAUSEF_WP definition
authorJames Hogan <james.hogan@imgtec.com>
Tue, 1 Mar 2016 22:19:38 +0000 (22:19 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 13 May 2016 12:02:13 +0000 (14:02 +0200)
commitc3a0ae5335b7898a1e5ee54ee6775271d656997d
treef11ec3694e1965f884125581ccfe7d19c5a2301d
parenta3cf057847c650e18c6af01d51fa74ec2979e805
MIPS: Add and use CAUSEF_WP definition

do_watch() clears bit 22 of cause without using a CAUSEF_* definition
from mipsregs.h. Add a definition for this bit (CAUSEF_WP) and make use
of it. Also use clear_c0_cause() instead of manual read/modify/write.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/12728/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/mipsregs.h
arch/mips/kernel/traps.c