summaryrefslogtreecommitdiffstats
path: root/arch/arm/mm/alignment.c
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2014-04-13 20:00:17 +0200
committerRussell King <rmk+kernel@arm.linux.org.uk>2014-06-02 10:20:13 +0200
commit175352a51cfc275b8590d27be6fdd4b14f416c32 (patch)
treebeb35952c2bc8c9d2be6d304e1150f574ead620e /arch/arm/mm/alignment.c
parentARM: provide common method to clear bits in CPU control register (diff)
downloadlinux-175352a51cfc275b8590d27be6fdd4b14f416c32.tar.xz
linux-175352a51cfc275b8590d27be6fdd4b14f416c32.zip
ARM: move "noalign" command line option to alignment.c
Keep all bits of alignment handling together. 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.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mm/alignment.c b/arch/arm/mm/alignment.c
index 53e268fcae45..4cfefa20ee98 100644
--- a/arch/arm/mm/alignment.c
+++ b/arch/arm/mm/alignment.c
@@ -950,6 +950,13 @@ do_alignment(unsigned long addr, unsigned int fsr, struct pt_regs *regs)
return 0;
}
+static int __init noalign_setup(char *__unused)
+{
+ set_cr(__clear_cr(CR_A));
+ return 1;
+}
+__setup("noalign", noalign_setup);
+
/*
* This needs to be done after sysctl_init, otherwise sys/ will be
* overwritten. Actually, this shouldn't be in sys/ at all since