ARM: remove global cr_no_alignment
cr_no_alignment is really only used by the alignment code. Since we no longer change the setting of cr_alignment after boot, we can localise this to alignment.c Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
@ -82,6 +82,7 @@ static unsigned long ai_word;
|
||||
static unsigned long ai_dword;
|
||||
static unsigned long ai_multi;
|
||||
static int ai_usermode;
|
||||
static unsigned long cr_no_alignment;
|
||||
|
||||
core_param(alignment, ai_usermode, int, 0600);
|
||||
|
||||
@ -979,6 +980,8 @@ static int __init alignment_init(void)
|
||||
ai_usermode = safe_usermode(ai_usermode, false);
|
||||
}
|
||||
|
||||
cr_no_alignment = get_cr() & ~CR_A;
|
||||
|
||||
hook_fault_code(FAULT_CODE_ALIGNMENT, do_alignment, SIGBUS, BUS_ADRALN,
|
||||
"alignment exception");
|
||||
|
||||
|
@ -40,7 +40,6 @@
|
||||
#ifdef CONFIG_CPU_CP15_MMU
|
||||
unsigned long __init __clear_cr(unsigned long mask)
|
||||
{
|
||||
cr_no_alignment = cr_no_alignment & ~mask;
|
||||
cr_alignment = cr_alignment & ~mask;
|
||||
return cr_alignment;
|
||||
}
|
||||
|
Reference in New Issue
Block a user