aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mm/fault.c
diff options
context:
space:
mode:
authorKirill A. Shutemov <kirill@shutemov.name>2010-07-22 08:16:49 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2010-07-27 05:43:49 -0400
commit3dc91aff9c3ef54b15cdaf32f61f973489fe69eb (patch)
tree6ce52b2b5ea6cb1b0317142ecf06b04d52bc1d34 /arch/arm/mm/fault.c
parentc1ba6ba3dd4c127dd1b14125ac7feed43d974436 (diff)
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/fault.c')
-rw-r--r--arch/arm/mm/fault.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mm/fault.c b/arch/arm/mm/fault.c
index cbfb2edcf7d1..ce6f3a422c81 100644
--- a/arch/arm/mm/fault.c
+++ b/arch/arm/mm/fault.c
@@ -463,9 +463,9 @@ static struct fsr_info {
463 * defines these to be "precise" aborts. 463 * defines these to be "precise" aborts.
464 */ 464 */
465 { do_bad, SIGSEGV, 0, "vector exception" }, 465 { do_bad, SIGSEGV, 0, "vector exception" },
466 { do_bad, SIGILL, BUS_ADRALN, "alignment exception" }, 466 { do_bad, SIGBUS, BUS_ADRALN, "alignment exception" },
467 { do_bad, SIGKILL, 0, "terminal exception" }, 467 { do_bad, SIGKILL, 0, "terminal exception" },
468 { do_bad, SIGILL, BUS_ADRALN, "alignment exception" }, 468 { do_bad, SIGBUS, BUS_ADRALN, "alignment exception" },
469/* Do we need runtime check ? */ 469/* Do we need runtime check ? */
470#if __LINUX_ARM_ARCH__ < 6 470#if __LINUX_ARM_ARCH__ < 6
471 { do_bad, SIGBUS, 0, "external abort on linefetch" }, 471 { do_bad, SIGBUS, 0, "external abort on linefetch" },