diff options
author | Richard Kuo | 2013-03-07 19:03:10 +0100 |
---|---|---|
committer | Richard Kuo | 2013-05-01 02:40:25 +0200 |
commit | 7777746c40876834c1527689336e43c8381b1921 (patch) | |
tree | b3257768e29db418ab9292a4e9a27c56e1e88fed /arch/hexagon/kernel/traps.c | |
parent | Hexagon: use correct work mask when checking for more work (diff) | |
download | kernel-qcow2-linux-7777746c40876834c1527689336e43c8381b1921.tar.gz kernel-qcow2-linux-7777746c40876834c1527689336e43c8381b1921.tar.xz kernel-qcow2-linux-7777746c40876834c1527689336e43c8381b1921.zip |
Hexagon: add support for single-stepping (v4+)
Hardware single-step is only available on v4 and later
architectures.
Signed-off-by: Richard Kuo <rkuo@codeaurora.org>
Diffstat (limited to 'arch/hexagon/kernel/traps.c')
-rw-r--r-- | arch/hexagon/kernel/traps.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/hexagon/kernel/traps.c b/arch/hexagon/kernel/traps.c index 12164a30e8ff..c2eeeef55335 100644 --- a/arch/hexagon/kernel/traps.c +++ b/arch/hexagon/kernel/traps.c @@ -451,3 +451,14 @@ void do_machcheck(struct pt_regs *regs) /* Halt and catch fire */ __vmstop(); } + +/* + * Treat this like the old 0xdb trap. + */ + +void do_debug_exception(struct pt_regs *regs) +{ + regs->hvmer.vmest &= ~HVM_VMEST_CAUSE_MSK; + regs->hvmer.vmest |= (TRAP_DEBUG << HVM_VMEST_CAUSE_SFT); + do_trap0(regs); +} |