sh: 16-bit get_unaligned() sh4a fix
authorMagnus Damm <damm@igel.co.jp>
Thu, 4 Jun 2009 11:20:24 +0000 (20:20 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Thu, 4 Jun 2009 11:20:24 +0000 (20:20 +0900)
commit48c72fccbfb1db01b5d0b98baff4442fea50d7a4
treebe342ec5f629a1488e8d93df2ff96670698fe03f
parent138f025267dcc07d5e7d0bb1f20e9a6b5f2fdcf7
sh: 16-bit get_unaligned() sh4a fix

This patch fixes the 16-bit case of the sh4a specific
unaligned access implementation. Without this patch
the 16-bit version of sh4a get_unaligned() results in
a 32-bit read which may read more data than intended
and/or cross page boundaries.

Unbreaks mtd NOR write handling on Migo-R.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/include/asm/unaligned-sh4a.h