diff options
Diffstat (limited to 'arch/arm/mm/alignment.c')
-rw-r--r-- | arch/arm/mm/alignment.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mm/alignment.c b/arch/arm/mm/alignment.c index 054e995d2f5b..b8cb1a2688a0 100644 --- a/arch/arm/mm/alignment.c +++ b/arch/arm/mm/alignment.c | |||
@@ -82,6 +82,7 @@ static unsigned long ai_word; | |||
82 | static unsigned long ai_dword; | 82 | static unsigned long ai_dword; |
83 | static unsigned long ai_multi; | 83 | static unsigned long ai_multi; |
84 | static int ai_usermode; | 84 | static int ai_usermode; |
85 | static unsigned long cr_no_alignment; | ||
85 | 86 | ||
86 | core_param(alignment, ai_usermode, int, 0600); | 87 | core_param(alignment, ai_usermode, int, 0600); |
87 | 88 | ||
@@ -979,6 +980,8 @@ static int __init alignment_init(void) | |||
979 | ai_usermode = safe_usermode(ai_usermode, false); | 980 | ai_usermode = safe_usermode(ai_usermode, false); |
980 | } | 981 | } |
981 | 982 | ||
983 | cr_no_alignment = get_cr() & ~CR_A; | ||
984 | |||
982 | hook_fault_code(FAULT_CODE_ALIGNMENT, do_alignment, SIGBUS, BUS_ADRALN, | 985 | hook_fault_code(FAULT_CODE_ALIGNMENT, do_alignment, SIGBUS, BUS_ADRALN, |
983 | "alignment exception"); | 986 | "alignment exception"); |
984 | 987 | ||