Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 262730
b: refs/heads/master
c: 2102a65
h: refs/heads/master
v: v3
  • Loading branch information
Dave Martin authored and Russell King committed Aug 9, 2011
1 parent 8b3d88a commit a1f72da
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 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: 088c01f1e39dbe93a13e0b00f4532ed8b79d35f4
refs/heads/master: 2102a65e69eac8d77dd71b4991b395e825087ba8
14 changes: 11 additions & 3 deletions trunk/arch/arm/mm/alignment.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <linux/sched.h>
#include <linux/uaccess.h>

#include <asm/system.h>
#include <asm/unaligned.h>

#include "fault.h"
Expand Down Expand Up @@ -913,9 +914,16 @@ do_alignment(unsigned long addr, unsigned int fsr, struct pt_regs *regs)
if (ai_usermode & UM_FIXUP)
goto fixup;

if (ai_usermode & UM_SIGNAL)
force_sig(SIGBUS, current);
else {
if (ai_usermode & UM_SIGNAL) {
siginfo_t si;

si.si_signo = SIGBUS;
si.si_errno = 0;
si.si_code = BUS_ADRALN;
si.si_addr = (void __user *)addr;

force_sig_info(si.si_signo, &si, current);
} else {
/*
* We're about to disable the alignment trap and return to
* user space. But if an interrupt occurs before actually
Expand Down

0 comments on commit a1f72da

Please sign in to comment.