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)
committerMark Brown <broonie@linaro.org>
Mon, 19 May 2014 18:50:20 +0000 (19:50 +0100)
commita6e15359d5c2aa6dd7f1eb0830a341c15e7c55b3
tree603ab1350778efc9c3ef9841f5ac3b3b42fd6269
parenteec87ea4cbd500f024960831946d083cad1885f1
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>
(cherry picked from commit ee6214cec7818867f368c35843ea1f3dffcbb57c)
Signed-off-by: Mark Brown <broonie@linaro.org>
arch/arm64/include/asm/debug-monitors.h
arch/arm64/kernel/debug-monitors.c
arch/arm64/kernel/entry.S