diff options
author | Ravi Bangoria <ravi.bangoria@linux.ibm.com> | 2019-10-17 11:31:58 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2019-11-13 06:58:02 +0100 |
commit | b811be615cb78c90fca42bbd5b958427d03ba7e0 (patch) | |
tree | 7f3619f689d6823344b7363f5994461d689168f2 /arch/powerpc/include/asm/hw_breakpoint.h | |
parent | powerpc/security: Fix wrong message when RFI Flush is disable (diff) | |
download | linux-b811be615cb78c90fca42bbd5b958427d03ba7e0.tar.xz linux-b811be615cb78c90fca42bbd5b958427d03ba7e0.zip |
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
Diffstat (limited to 'arch/powerpc/include/asm/hw_breakpoint.h')
-rw-r--r-- | arch/powerpc/include/asm/hw_breakpoint.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/hw_breakpoint.h b/arch/powerpc/include/asm/hw_breakpoint.h index 67e2da195eae..4a887e85a5f4 100644 --- a/arch/powerpc/include/asm/hw_breakpoint.h +++ b/arch/powerpc/include/asm/hw_breakpoint.h @@ -33,6 +33,9 @@ struct arch_hw_breakpoint { #define HW_BRK_TYPE_PRIV_ALL (HW_BRK_TYPE_USER | HW_BRK_TYPE_KERNEL | \ HW_BRK_TYPE_HYP) +#define DABR_MAX_LEN 8 +#define DAWR_MAX_LEN 512 + #ifdef CONFIG_HAVE_HW_BREAKPOINT #include <linux/kdebug.h> #include <asm/reg.h> |