]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/watchpoint: Introduce macros for watchpoint length
authorRavi Bangoria <ravi.bangoria@linux.ibm.com>
Thu, 17 Oct 2019 09:31:58 +0000 (15:01 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 13 Nov 2019 05:58:02 +0000 (16:58 +1100)
commit9dc117790ee354c4ce26e7a40be05e98b34c9ada
tree7f3619f689d6823344b7363f5994461d689168f2
parent503919aec5a826614f4fa44e8ed89d3c1cbaa493
powerpc/watchpoint: Introduce macros for watchpoint length

We are hadrcoding length everywhere in the watchpoint code. Introduce
macros for the length and use them.

Signed-off-by: Ravi Bangoria <ravi.bangoria@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20191017093204.7511-2-ravi.bangoria@linux.ibm.com
arch/powerpc/include/asm/hw_breakpoint.h
arch/powerpc/kernel/hw_breakpoint.c
arch/powerpc/kernel/ptrace.c
arch/powerpc/xmon/xmon.c