Skip to content
Commit e233c733 authored by James Hogan's avatar James Hogan Committed by Ralf Baechle
Browse files

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: default avatarJames Hogan <james.hogan@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/12728/


Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent b0d8a082
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment