arm64: support single-step and breakpoint handler hooks
authorSandeepa Prabhu <sandeepa.prabhu@linaro.org>
Wed, 4 Dec 2013 05:50:20 +0000 (05:50 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 19 Dec 2013 17:43:11 +0000 (17:43 +0000)
commitee6214cec7818867f368c35843ea1f3dffcbb57c
treedc85030cc4fee90004063af8401489f5091af3a6
parent26920dd2da79a3207803da9453c0e6c82ac968ca
arm64: support single-step and breakpoint handler hooks

AArch64 Single Steping and Breakpoint debug exceptions will be
used by multiple debug framworks like kprobes & kgdb.

This patch implements the hooks for those frameworks to register
their own handlers for handling breakpoint and single step events.

Reworked the debug exception handler in entry.S: do_dbg to route
software breakpoint (BRK64) exception to do_debug_exception()

Signed-off-by: Sandeepa Prabhu <sandeepa.prabhu@linaro.org>
Signed-off-by: Deepak Saxena <dsaxena@linaro.org>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/debug-monitors.h
arch/arm64/kernel/debug-monitors.c
arch/arm64/kernel/entry.S