summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/booke
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2012-07-02 21:18:09 +0000
committermarcel <marcel@FreeBSD.org>2012-07-02 21:18:09 +0000
commit50f2900b4c01dcd1864c314eb8a5746f0f8a7657 (patch)
tree085d638da57ff43bc46d324a222d70f2bdd00721 /sys/powerpc/booke
parent67b1b7f52a4cd71315a30a4fc7f27ebf45ceaddb (diff)
downloadFreeBSD-src-50f2900b4c01dcd1864c314eb8a5746f0f8a7657.zip
FreeBSD-src-50f2900b4c01dcd1864c314eb8a5746f0f8a7657.tar.gz
Handle traps from the debugger. We need to catch them and re-enter
the debugger where they're being taken care of.
Diffstat (limited to 'sys/powerpc/booke')
-rw-r--r--sys/powerpc/booke/trap.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/powerpc/booke/trap.c b/sys/powerpc/booke/trap.c
index 091fce0..cd2ab38 100644
--- a/sys/powerpc/booke/trap.c
+++ b/sys/powerpc/booke/trap.c
@@ -143,6 +143,13 @@ trap(struct trapframe *frame)
int sig, type, user;
ksiginfo_t ksi;
+#ifdef KDB
+ if (kdb_active) {
+ kdb_reenter();
+ return;
+ }
+#endif
+
PCPU_INC(cnt.v_trap);
td = curthread;
OpenPOWER on IntegriCloud