Skip to content

Commit

Permalink
sh: allow alignment fault mode to be configured at kernel boot.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paul Mundt committed Feb 23, 2010
1 parent 16afc9f commit 7c1b2c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/sh/mm/alignment.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
Expand Down

0 comments on commit 7c1b2c6

Please sign in to comment.