diff options
Diffstat (limited to 'arch/mips/kernel/traps.c')
-rw-r--r-- | arch/mips/kernel/traps.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c index f9a6a5665559..77f796b9975e 100644 --- a/arch/mips/kernel/traps.c +++ b/arch/mips/kernel/traps.c | |||
@@ -408,9 +408,10 @@ static inline void simulate_ll(struct pt_regs *regs, unsigned int opcode) | |||
408 | 408 | ||
409 | preempt_enable(); | 409 | preempt_enable(); |
410 | 410 | ||
411 | compute_return_epc(regs); | ||
412 | |||
411 | regs->regs[(opcode & RT) >> 16] = value; | 413 | regs->regs[(opcode & RT) >> 16] = value; |
412 | 414 | ||
413 | compute_return_epc(regs); | ||
414 | return; | 415 | return; |
415 | 416 | ||
416 | sig: | 417 | sig: |
@@ -459,9 +460,9 @@ static inline void simulate_sc(struct pt_regs *regs, unsigned int opcode) | |||
459 | goto sig; | 460 | goto sig; |
460 | } | 461 | } |
461 | 462 | ||
463 | compute_return_epc(regs); | ||
462 | regs->regs[reg] = 1; | 464 | regs->regs[reg] = 1; |
463 | 465 | ||
464 | compute_return_epc(regs); | ||
465 | return; | 466 | return; |
466 | 467 | ||
467 | sig: | 468 | sig: |