diff options
author | Dietmar Eggemann <dietmar.eggemann@arm.com> | 2012-10-14 22:25:37 +0100 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2013-01-10 21:13:07 +0000 |
commit | 9a6eb310eaa5336b89a27a0bbb78da4bba35f6f1 (patch) | |
tree | 50975e4e50ffd1d91b44dfe2e389161697751a3c /lib/mpi/mpi-pow.c | |
parent | 57ba899731156ab01cdb7dae8d1fe6430ef4957c (diff) |
ARM: hw_breakpoint: Debug powerdown support for self-hosted debug
This patch introduces debug powerdown support for self-hosted debug for v7
and v7.1 debug architecture for a SinglePower system, i.e. a system without a
separate core and debug power domain. On a SinglePower system the OS Lock is
lost over a powerdown.
If CONFIG_CPU_PM is set the new function pm_init() registers hw_breakpoint
with CPU PM for a system supporting OS Save and Restore.
Receiving a CPU PM EXIT notifier indicates that a single CPU has exited a low
power state. A call to reset_ctrl_regs() is hooked into the CPU PM EXIT
notifier chain. This function makes sure that the sticky power-down is clear
(only v7 debug), the OS Double Lock is clear (only v7.1 debug) and it clears
the OS Lock for v7 debug (for a system supporting OS Save and Restore) and
v7.1 debug. Furthermore, it clears any vector-catch events and all
breakpoint/watchpoint control/value registers for v7 and v7.1 debug.
Signed-off-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
[will: removed redundant has_ossr check]
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'lib/mpi/mpi-pow.c')
0 files changed, 0 insertions, 0 deletions