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>
This commit is contained in:
committed by
Russell King
parent
c1ba6ba3dd
commit
3dc91aff9c
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user