sh: Handle calling csum_partial with misaligned data
authorStuart Menefy <stuart.menefy@st.com>
Fri, 12 Dec 2008 18:34:38 +0000 (18:34 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Thu, 29 Jan 2009 02:56:02 +0000 (11:56 +0900)
commitcadc4e1a2b4d20d0cc0e81f2c6ba0588775e54e5
tree2341d7a1426ee687ff828b3a6d2885abbbef261b
parent3d22fca7ab720818cca19a1ee6820e9dc4485195
sh: Handle calling csum_partial with misaligned data

In rare circumstances csum_partial() can be called with data which is
not 16 or 32 bit aligned. This is been observed with RPC calls for NFS
file systems for example. Add support for handling this without resorting
to the misaligned fixup code (which is why this hasn't been seen as a
problem). This mimics the i386 version, which has had this support for
some time.

Signed-off-by: Stuart Menefy <stuart.menefy@st.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/lib/checksum.S