Re: [PATCH 4/4] MIPS: Add and use watch register field definitions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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(-)

[...]




[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux