diff options
author | Giuseppe Cavallaro <peppe.cavallaro@st.com> | 2009-08-24 03:14:03 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-08-24 03:14:03 -0400 |
commit | 27a30f53bbb77fd7e2e0459197e23b63fe3b74d4 (patch) | |
tree | e64230e38796917f3587b7d41a2b0fdb8e261590 /arch/sh/kernel/kgdb.c | |
parent | 15444a8973dcfbd286b3e638cbadac2446a9271a (diff) |
sh: kgdb: do not reload VBR while handling debugger breackpoint
Save the VBR allowing GDB to dump full registers set but do not reload it
as soon as the kgdb_handle_exception is invoked.
Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: Stuart Menefy <stuart.menefy@st.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/kgdb.c')
-rw-r--r-- | arch/sh/kernel/kgdb.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/sh/kernel/kgdb.c b/arch/sh/kernel/kgdb.c index 305aad742aec..d29de7864f32 100644 --- a/arch/sh/kernel/kgdb.c +++ b/arch/sh/kernel/kgdb.c | |||
@@ -195,8 +195,6 @@ void gdb_regs_to_pt_regs(unsigned long *gdb_regs, struct pt_regs *regs) | |||
195 | regs->gbr = gdb_regs[GDB_GBR]; | 195 | regs->gbr = gdb_regs[GDB_GBR]; |
196 | regs->mach = gdb_regs[GDB_MACH]; | 196 | regs->mach = gdb_regs[GDB_MACH]; |
197 | regs->macl = gdb_regs[GDB_MACL]; | 197 | regs->macl = gdb_regs[GDB_MACL]; |
198 | |||
199 | __asm__ __volatile__ ("ldc %0, vbr" : : "r" (gdb_regs[GDB_VBR])); | ||
200 | } | 198 | } |
201 | 199 | ||
202 | void sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *p) | 200 | void sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *p) |