On 03/01/2016 02:19 PM, James Hogan wrote:
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@xxxxxxxxxx>
Seems sane, Reviewed-by: David Daney <david.daney@xxxxxxxxxx>
Cc: Ralf Baechle<ralf@xxxxxxxxxxxxxx> Cc:linux-mips@xxxxxxxxxxxxxx --- arch/mips/include/asm/mipsregs.h | 18 ++++++++++ arch/mips/kernel/ptrace.c | 7 ++-- arch/mips/kernel/watch.c | 74 ++++++++++++++++++++++------------------ 3 files changed, 63 insertions(+), 36 deletions(-)
[...]