diff options
Diffstat (limited to 'arch/mips/kernel/kgdb.c')
-rw-r--r-- | arch/mips/kernel/kgdb.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/mips/kernel/kgdb.c b/arch/mips/kernel/kgdb.c index 50c9bb880667..6ed4c83c869b 100644 --- a/arch/mips/kernel/kgdb.c +++ b/arch/mips/kernel/kgdb.c | |||
@@ -180,6 +180,11 @@ void sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *p) | |||
180 | *(ptr++) = regs->cp0_epc; | 180 | *(ptr++) = regs->cp0_epc; |
181 | } | 181 | } |
182 | 182 | ||
183 | void kgdb_arch_set_pc(struct pt_regs *regs, unsigned long pc) | ||
184 | { | ||
185 | regs->cp0_epc = pc; | ||
186 | } | ||
187 | |||
183 | /* | 188 | /* |
184 | * Calls linux_debug_hook before the kernel dies. If KGDB is enabled, | 189 | * Calls linux_debug_hook before the kernel dies. If KGDB is enabled, |
185 | * then try to fall into the debugger | 190 | * then try to fall into the debugger |