Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 148957
b: refs/heads/master
c: bb6e647
h: refs/heads/master
i:
  148955: 70208f4
v: v3
  • Loading branch information
Haavard Skinnemoen committed Jun 13, 2009
1 parent 6dc5470 commit 6450b93
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 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: fbe0b8d5822a88e2e769a318eaf3134da5881769
refs/heads/master: bb6e647051a59dca5a72b3deef1e061d7c1c34da
11 changes: 10 additions & 1 deletion trunk/arch/avr32/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,17 @@ void _exception(long signr, struct pt_regs *regs, int code,
{
siginfo_t info;

if (!user_mode(regs))
if (!user_mode(regs)) {
const struct exception_table_entry *fixup;

/* Are we prepared to handle this kernel fault? */
fixup = search_exception_tables(regs->pc);
if (fixup) {
regs->pc = fixup->fixup;
return;
}
die("Unhandled exception in kernel mode", regs, signr);
}

memset(&info, 0, sizeof(info));
info.si_signo = signr;
Expand Down

0 comments on commit 6450b93

Please sign in to comment.