diff options
author | Pratyush Anand <panand@redhat.com> | 2016-11-14 15:02:45 +0100 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2016-11-18 18:26:14 +0100 |
commit | 0ddb8e0b784ba034f3096d5a54684d0d73155e2a (patch) | |
tree | 0f8a2676023d6ff2fe21c4944f8bab5f66ea93c8 /arch/arm64/include | |
parent | arm64: hw_breakpoint: Handle inexact watchpoint addresses (diff) | |
download | linux-0ddb8e0b784ba034f3096d5a54684d0d73155e2a.tar.xz linux-0ddb8e0b784ba034f3096d5a54684d0d73155e2a.zip |
arm64: Allow hw watchpoint of length 3,5,6 and 7
Since, arm64 can support all offset within a double word limit. Therefore,
now support other lengths within that range as well.
Signed-off-by: Pratyush Anand <panand@redhat.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/include')
-rw-r--r-- | arch/arm64/include/asm/hw_breakpoint.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/hw_breakpoint.h b/arch/arm64/include/asm/hw_breakpoint.h index d1c3b06ad307..b6b167ac082b 100644 --- a/arch/arm64/include/asm/hw_breakpoint.h +++ b/arch/arm64/include/asm/hw_breakpoint.h @@ -77,7 +77,11 @@ static inline void decode_ctrl_reg(u32 reg, /* Lengths */ #define ARM_BREAKPOINT_LEN_1 0x1 #define ARM_BREAKPOINT_LEN_2 0x3 +#define ARM_BREAKPOINT_LEN_3 0x7 #define ARM_BREAKPOINT_LEN_4 0xf +#define ARM_BREAKPOINT_LEN_5 0x1f +#define ARM_BREAKPOINT_LEN_6 0x3f +#define ARM_BREAKPOINT_LEN_7 0x7f #define ARM_BREAKPOINT_LEN_8 0xff /* Kernel stepping */ |