MIPS: Add and use watch register field definitions
authorJames Hogan <james.hogan@imgtec.com>
Tue, 1 Mar 2016 22:19:39 +0000 (22:19 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 13 May 2016 12:02:13 +0000 (14:02 +0200)
commit50af501cd84b4e005fd54c351184ec89cfc940e4
tree66f45c8dc1a0f811961b9931a8a59fcebcfa6bd8
parente233c733786a8ca70cd12cc30aeb80e5b390ad71
MIPS: Add and use watch register field definitions

The files watch.c and ptrace.c contain various magic masks for
WatchLo/WatchHi register fields. Add some definitions to mipsregs.h for
these registers and make use of them in both watch.c and ptrace.c,
hopefully making them more readable.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Reviewed-by: David Daney <david.daney@cavium.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/12729/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/mipsregs.h
arch/mips/kernel/ptrace.c
arch/mips/kernel/watch.c