Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 116131
b: refs/heads/master
c: b3d765f
h: refs/heads/master
i:
  116129: 161dfa1
  116127: b9acfa5
v: v3
  • Loading branch information
Paul Mundt committed Sep 17, 2008
1 parent dd8f070 commit ac3e66c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5a89f1adbc5ce44988aab0c370ae2f1478061307
refs/heads/master: b3d765f5df5707e2b3676768b6877db5d8db76a2
8 changes: 3 additions & 5 deletions trunk/arch/sh/kernel/traps_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -742,15 +742,13 @@ asmlinkage void do_illegal_slot_inst(unsigned long r4, unsigned long r5,
struct pt_regs __regs)
{
struct pt_regs *regs = RELOC_HIDE(&__regs, 0);
unsigned long error_code;
unsigned long inst;
struct task_struct *tsk = current;

if (kprobe_handle_illslot(regs->pc) == 0)
return;

#ifdef CONFIG_SH_FPU_EMU
unsigned short inst = 0;

get_user(inst, (unsigned short *)regs->pc + 1);
if (!do_fpu_inst(inst, regs)) {
get_user(inst, (unsigned short *)regs->pc);
Expand All @@ -761,12 +759,12 @@ asmlinkage void do_illegal_slot_inst(unsigned long r4, unsigned long r5,
/* not a FPU inst. */
#endif

lookup_exception_vector(error_code);
lookup_exception_vector(inst);

local_irq_enable();
CHK_REMOTE_DEBUG(regs);
force_sig(SIGILL, tsk);
die_if_no_fixup("illegal slot instruction", regs, error_code);
die_if_no_fixup("illegal slot instruction", regs, inst);
}

asmlinkage void do_exception_error(unsigned long r4, unsigned long r5,
Expand Down

0 comments on commit ac3e66c

Please sign in to comment.