]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
powerpc: Avoid unaligned loads and stores in boot memcpy code
authorPaul Mackerras <paulus@samba.org>
Sat, 14 Jan 2006 04:06:51 +0000 (15:06 +1100)
committerPaul Mackerras <paulus@samba.org>
Sat, 14 Jan 2006 04:06:51 +0000 (15:06 +1100)
commitb4e7de0f3575f4862f04921c5bd0cb5680cc8d71
treeb74a9a277168b35119d9dd5657ab567c21fc2111
parent66a45dd3620ee5f913ba1af3d2dca8b9bdfa2b96
powerpc: Avoid unaligned loads and stores in boot memcpy code

The 601 processor will generate an alignment exception for accesses
which cross a page boundary.  In the boot wrapper code, OF is still
handling all exceptions, and it doesn't have an alignment exception
handler that emulates the instruction and continues.

This changes the memcpy and memmove routines in the boot wrapper to
avoid doing unaligned accesses.  If the source and destination are
misaligned with respect to each other, we just copy one byte at a
time.

Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/boot/string.S