|
@@ -33,6 +33,7 @@
|
|
|
#include <asm/processor.h>
|
|
#include <asm/processor.h>
|
|
|
#include <asm/sigcontext.h>
|
|
#include <asm/sigcontext.h>
|
|
|
#include <linux/uaccess.h>
|
|
#include <linux/uaccess.h>
|
|
|
|
|
+#include <asm/irq_regs.h>
|
|
|
|
|
|
|
|
static struct hard_trap_info {
|
|
static struct hard_trap_info {
|
|
|
unsigned char tt; /* Trap type code for MIPS R3xxx and R4xxx */
|
|
unsigned char tt; /* Trap type code for MIPS R3xxx and R4xxx */
|
|
@@ -214,7 +215,7 @@ static void kgdb_call_nmi_hook(void *ignored)
|
|
|
old_fs = get_fs();
|
|
old_fs = get_fs();
|
|
|
set_fs(get_ds());
|
|
set_fs(get_ds());
|
|
|
|
|
|
|
|
- kgdb_nmicallback(raw_smp_processor_id(), NULL);
|
|
|
|
|
|
|
+ kgdb_nmicallback(raw_smp_processor_id(), get_irq_regs());
|
|
|
|
|
|
|
|
set_fs(old_fs);
|
|
set_fs(old_fs);
|
|
|
}
|
|
}
|