From: Andre Draszik Date: Mon, 24 Aug 2009 05:53:46 +0000 (+0900) Subject: sh: Allow user control over misaligned fixup handling X-Git-Tag: v2.6.32-rc1~640^2~35^2~14^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7436cde6b2ca71049051620c68c26522bb3403bf;p=pandora-kernel.git sh: Allow user control over misaligned fixup handling This patch brings the SH4 misaligned trap handler in line with what happens on ARM: Add a /proc/cpu/alignment which can be read from to get alignment trap statistics and written to to influence the behaviour of the alignment trap handling. The value to write is a bitfield, which has the following meaning: 1 warn, 2 fixup, 4 signal In addition, we add a /proc/cpu/kernel_alignment, to enable or disable warnings in case of kernel code causing alignment errors. Signed-off by: Andre Draszik Signed-off-by: Stuart Menefy Signed-off-by: Paul Mundt --- Reading git-diff-tree failed