summaryrefslogtreecommitdiffstats
path: root/arch/arm/mm/alignment.c
diff options
context:
space:
mode:
authorKirill A. Shutemov <kirill@shutemov.name>2010-07-22 14:16:49 +0200
committerRussell King <rmk+kernel@arm.linux.org.uk>2010-07-27 11:43:49 +0200
commit3dc91aff9c3ef54b15cdaf32f61f973489fe69eb (patch)
tree6ce52b2b5ea6cb1b0317142ecf06b04d52bc1d34 /arch/arm/mm/alignment.c
parentARM: 6251/1: Make SPARSE_IRQ a hidden option (diff)
downloadlinux-3dc91aff9c3ef54b15cdaf32f61f973489fe69eb.tar.xz
linux-3dc91aff9c3ef54b15cdaf32f61f973489fe69eb.zip
ARM: 6252/1: Use SIGBUS for unaligned access instead of SIGILL
POSIX specify to use signal SIGBUS with code BUS_ADRALN for invalid address alignment. Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mm/alignment.c')
-rw-r--r--arch/arm/mm/alignment.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mm/alignment.c b/arch/arm/mm/alignment.c
index 6f98c358989a..53a609680c10 100644
--- a/arch/arm/mm/alignment.c
+++ b/arch/arm/mm/alignment.c
@@ -924,8 +924,8 @@ static int __init alignment_init(void)
ai_usermode = UM_FIXUP;
}
- hook_fault_code(1, do_alignment, SIGILL, "alignment exception");
- hook_fault_code(3, do_alignment, SIGILL, "alignment exception");
+ hook_fault_code(1, do_alignment, SIGBUS, "alignment exception");
+ hook_fault_code(3, do_alignment, SIGBUS, "alignment exception");
return 0;
}