arm64: debug: consolidate software breakpoint handlers
authorWill Deacon <will.deacon@arm.com>
Sat, 16 Mar 2013 08:48:13 +0000 (08:48 +0000)
committerMark Brown <broonie@linaro.org>
Thu, 15 May 2014 18:59:53 +0000 (19:59 +0100)
commit9377422c5c84f693385907fd61d8e7fb19596530
tree1212c2b506d8f01c268726e7a0ae5ec3263315eb
parentdc1307d2947cef80a10f53f1aa136b72accec79f
arm64: debug: consolidate software breakpoint handlers

The software breakpoint handlers are hooked in directly from ptrace,
which makes it difficult to add additional handlers for things like
kprobes and kgdb.

This patch moves the handling code into debug-monitors.c, where we can
dispatch to different debug subsystems more easily.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
(cherry picked from commit 1442b6ed249d2b3d2cfcf45b65ac64393495c96c)
Signed-off-by: Mark Brown <broonie@linaro.org>
arch/arm64/include/asm/debug-monitors.h
arch/arm64/include/asm/ptrace.h
arch/arm64/kernel/debug-monitors.c
arch/arm64/kernel/ptrace.c
arch/arm64/kernel/traps.c