lkml.org 
[lkml]   [2004]   [Mar]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectFixed broken x86_64
Date
Hi,

I am attempting to fix broken x86_64: kgdb_connected is zero when kgdb
connects to gdb. This comes through a debug exception.

I am checking in this patch to fix it for uniprocessor systems. I still have
to think about smp system.
-Amit

@@ -556,13 +566,15 @@
+{
+ struct die_args *d = ptr;
+
-+ if (!kgdb_connected || (cmd == DIE_DEBUG && user_mode(d->regs)))
++ if (cmd == DIE_DEBUG && user_mode(d->regs))
+ return NOTIFY_DONE;
+ if (cmd == DIE_NMI_IPI) {
-+ if (atomic_read(debugger_active))
++ if (atomic_read(&debugger_active))
+ return NOTIFY_BAD;
-+ } else if ((*linux_debug_hook)(d->trapnr, d->signr, d->err,
d->regs))
-+ return NOTIFY_BAD; /* skip */
++ } else {
++ CHK_DEBUGGER(d->trapnr, d->signr, d->err, d->regs,);
++ return NOTIFY_BAD;
++ }
+
+ return NOTIFY_DONE;
+}


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:01    [W:0.023 / U:0.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site