diff options
author | Paul Mundt <lethal@linux-sh.org> | 2010-02-22 21:48:50 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-02-22 21:48:50 -0500 |
commit | 7c1b2c6890a1a033dde4f6991c0a1fcd69cf58ce (patch) | |
tree | a7c96cf762699b936ddc1c191444fafc7f73a401 /arch/sh | |
parent | 16afc9fb0298a66da25ee015eb3c8a8f55e3744a (diff) |
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 <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh')
-rw-r--r-- | arch/sh/mm/alignment.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; | |||
27 | /* 0: no warning 1: print a warning message, disabled by default */ | 27 | /* 0: no warning 1: print a warning message, disabled by default */ |
28 | static int se_kernmode_warn; | 28 | static int se_kernmode_warn; |
29 | 29 | ||
30 | core_param(alignment, se_usermode, int, 0600); | ||
31 | |||
30 | void inc_unaligned_byte_access(void) | 32 | void inc_unaligned_byte_access(void) |
31 | { | 33 | { |
32 | se_half++; | 34 | se_half++; |