]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
sh: allow alignment fault mode to be configured at kernel boot.
authorPaul Mundt <lethal@linux-sh.org>
Tue, 23 Feb 2010 02:48:50 +0000 (11:48 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Tue, 23 Feb 2010 02:48:50 +0000 (11:48 +0900)
Follow the ARM change, which is what our alignment helpers are based on
in the first place.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/mm/alignment.c

index 2da808802a4c6e3c24bea5bd1ca405deff883b53..00fb9e3f057c972cb09a07920b468a59ac505a39 100644 (file)
@@ -27,6 +27,8 @@ static int se_usermode = UM_WARN | UM_FIXUP;
 /* 0: no warning 1: print a warning message, disabled by default */
 static int se_kernmode_warn;
 
+core_param(alignment, se_usermode, int, 0600);
+
 void inc_unaligned_byte_access(void)
 {
        se_half++;