]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit67e6f8b63ab60ea04df98bdf0645050d75f020c9
tree66f45c8dc1a0f811961b9931a8a59fcebcfa6bd8
parent5606a22bf71f9ccc710f1d52c6ad4e1e1234350f
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