sh: Support thread fault code encoding.
authorPaul Mundt <lethal@linux-sh.org>
Mon, 14 May 2012 05:57:28 +0000 (14:57 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 14 May 2012 05:57:28 +0000 (14:57 +0900)
commit5a1dc78a38bfb04159a08cd493e5b3d844939e6c
tree860420d3d52e2666449d1e688c399876a5c16bd3
parentf007688a50cf5724049a4a5f17023fcdb0966b54
sh: Support thread fault code encoding.

This provides a simple interface modelled after sparc64/m32r to encode
the error code in the upper byte of thread_info for finer-grained
handling in the page fault path.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/include/asm/thread_info.h
arch/sh/kernel/cpu/sh3/entry.S
arch/sh/mm/fault_32.c