summaryrefslogtreecommitdiffstats
path: root/arch/mips64
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2001-03-03 07:16:09 +0000
committerRalf Baechle <ralf@linux-mips.org>2001-03-03 07:16:09 +0000
commitb942ff0006c8b3e66f3d6e69df04eff28e9e7a85 (patch)
tree1191f88c4ec37929398cacc868ceb410b88a4f8c /arch/mips64
parent5ab307f5e6368d6e8eb5d758b41311458827ea39 (diff)
We were incrementing too much for the delay slot case.
Diffstat (limited to 'arch/mips64')
-rw-r--r--arch/mips64/kernel/traps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips64/kernel/traps.c b/arch/mips64/kernel/traps.c
index c6777f938..6abeac03d 100644
--- a/arch/mips64/kernel/traps.c
+++ b/arch/mips64/kernel/traps.c
@@ -264,7 +264,7 @@ static inline int get_insn_opcode(struct pt_regs *regs, unsigned int *opcode)
epc = (unsigned int *) (unsigned long) regs->cp0_epc;
if (regs->cp0_cause & CAUSEF_BD)
- epc += 4;
+ epc++;
if (verify_area(VERIFY_READ, epc, 4)) {
force_sig(SIGSEGV, current);