Browse Source

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>
Paul Mundt 15 years ago
parent
commit
7c1b2c6890
1 changed files with 2 additions and 0 deletions
  1. 2 0
      arch/sh/mm/alignment.c

+ 2 - 0
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 */
 /* 0: no warning 1: print a warning message, disabled by default */
 static int se_kernmode_warn;
 static int se_kernmode_warn;
 
 
+core_param(alignment, se_usermode, int, 0600);
+
 void inc_unaligned_byte_access(void)
 void inc_unaligned_byte_access(void)
 {
 {
 	se_half++;
 	se_half++;