[MIPS] Add some debugfs files to debug unaligned accesses
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Fri, 29 Jun 2007 15:55:48 +0000 (00:55 +0900)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 10 Jul 2007 16:33:04 +0000 (17:33 +0100)
commit6312e0ee45236b6882cd26b2ccc167b1b91646fc
tree1c5d17522d4232e4ee40512afffb199e7c99f6ce
parent2db30150fe4fe309c57087c661209c9ea0b5c21b
[MIPS] Add some debugfs files to debug unaligned accesses

Currently a number of unaligned instructions is counted but not used.
Add /debug/mips/unaligned_instructions file to show the value.

And add /debug/mips/unaligned_action to control behavior upon an
unaligned access.  Possible actions are:

0: silently fixup the unaligned access.
1: send SIGBUS.
2: dump registers, process name, etc. and fixup.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/setup.c
arch/mips/kernel/unaligned.c