sh: wire up SET/GET_UNALIGN_CTL.
authorPaul Mundt <lethal@linux-sh.org>
Tue, 23 Feb 2010 03:56:30 +0000 (12:56 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Tue, 23 Feb 2010 03:56:30 +0000 (12:56 +0900)
commit94ea5e449ae834af058ef005d16a8ad44fcf13d6
tree4152e5cc7cd5535452b2cd074b6ba041abc7c301
parent7c1b2c6890a1a033dde4f6991c0a1fcd69cf58ce
sh: wire up SET/GET_UNALIGN_CTL.

This hooks up the SET/GET_UNALIGN_CTL knobs cribbing the bulk of it from
the PPC and ia64 implementations. The thread flags happen to be the
logical inverse of what the global fault mode is set to, so this works
out pretty cleanly. By default the global fault mode is used, with tasks
now being able to override their own settings via prctl().

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/include/asm/processor.h
arch/sh/include/asm/processor_32.h
arch/sh/include/asm/processor_64.h
arch/sh/mm/alignment.c