From: Paul Mundt Date: Tue, 23 Feb 2010 02:48:50 +0000 (+0900) Subject: sh: allow alignment fault mode to be configured at kernel boot. X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7c1b2c6890a1a033dde4f6991c0a1fcd69cf58ce;p=linux-beck.git sh: allow alignment fault mode to be configured at kernel boot. Follow the ARM change, which is what our alignment helpers are based on in the first place. Signed-off-by: Paul Mundt --- diff --git a/arch/sh/mm/alignment.c b/arch/sh/mm/alignment.c index 2da808802a4c..00fb9e3f057c 100644 --- a/arch/sh/mm/alignment.c +++ b/arch/sh/mm/alignment.c @@ -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++;