diff options
author | Andre Draszik <andre.draszik@st.com> | 2009-08-24 14:53:46 +0900 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-08-24 14:53:46 +0900 |
commit | 7436cde6b2ca71049051620c68c26522bb3403bf (patch) | |
tree | c4574582b77553d8acf06d342b3f8b83c38400a5 /kernel/trace/trace_selftest.c | |
parent | 9a4af027a03e10e97f56081cd7dd1fda5282bd9c (diff) | |
download | blackbird-op-linux-7436cde6b2ca71049051620c68c26522bb3403bf.tar.gz blackbird-op-linux-7436cde6b2ca71049051620c68c26522bb3403bf.zip |
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 <andre.draszik@st.com>
Signed-off-by: Stuart Menefy <stuart.menefy@st.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'kernel/trace/trace_selftest.c')
0 files changed, 0 insertions, 0 deletions