diff options
author | Will Deacon <will.deacon@arm.com> | 2012-10-18 15:17:00 +0100 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2012-10-18 20:15:34 +0100 |
commit | 8f34a1da35aed7b438a2de8ac27723a5472e8399 (patch) | |
tree | 78bd55aae0bcfba26dbedeb93471e13635f90c67 /arch/arm64/include/asm/device.h | |
parent | 7797d17c591ae62c6f43c6de4fdb8beeb50eb692 (diff) | |
download | linux-8f34a1da35aed7b438a2de8ac27723a5472e8399.tar.gz linux-8f34a1da35aed7b438a2de8ac27723a5472e8399.tar.bz2 linux-8f34a1da35aed7b438a2de8ac27723a5472e8399.zip |
arm64: ptrace: use HW_BREAKPOINT_EMPTY type for disabled breakpoints
If a debugger tries to zero a hardware debug control register, the
kernel will try to infer both the type and length of the breakpoint
in order to sanity-check against the requested regset type. This will
fail because the encoding will appear as a zero-length breakpoint.
This patch changes the control register setting so that disabled
breakpoints are treated as HW_BREAKPOINT_EMPTY and no further
sanity-checking is required.
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/include/asm/device.h')
0 files changed, 0 insertions, 0 deletions