sh: add byte support to the sign extension code
commit4252c659a4e7f4260e4bdc87538578236c51ab2d
authorMagnus Damm <magnus.damm@gmail.com>
Thu, 7 Feb 2008 10:58:46 +0000 (7 19:58 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Thu, 14 Feb 2008 05:22:09 +0000 (14 14:22 +0900)
tree0b85509081e8ad05db5514bccaa71f384dfa92bd
parent1e6760c5c4589d02a6877fb256b99c33dd8f1ede
sh: add byte support to the sign extension code

This patch adds byte support to the sign extension code. Unaligned access
traps should never be generated on 8-bit io operations, but we will use this
code for trapped io and we do need byte support there.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/traps_32.c