diff options
author | Giuseppe Cavallaro <peppe.cavallaro@st.com> | 2009-08-24 16:14:03 +0900 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-08-24 16:14:03 +0900 |
commit | 27a30f53bbb77fd7e2e0459197e23b63fe3b74d4 (patch) | |
tree | e64230e38796917f3587b7d41a2b0fdb8e261590 /arch | |
parent | 15444a8973dcfbd286b3e638cbadac2446a9271a (diff) | |
download | op-kernel-dev-27a30f53bbb77fd7e2e0459197e23b63fe3b74d4.zip op-kernel-dev-27a30f53bbb77fd7e2e0459197e23b63fe3b74d4.tar.gz |
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')
-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 305aad7..d29de78 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) regs->gbr = gdb_regs[GDB_GBR]; regs->mach = gdb_regs[GDB_MACH]; regs->macl = gdb_regs[GDB_MACL]; - - __asm__ __volatile__ ("ldc %0, vbr" : : "r" (gdb_regs[GDB_VBR])); } void sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *p) |