powerpc: Handle VSX alignment faults correctly in little-endian mode
authorNeil Campbell <neilc@linux.vnet.ibm.com>
Mon, 14 Dec 2009 04:08:57 +0000 (04:08 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 6 Jan 2010 23:03:32 +0000 (15:03 -0800)
commitd75621cbb1dfadcd6801b39c03867bab60d94dd7
treec84aaa543d142fbfbb3a539859908bc1963eb403
parent8aafd7d4acb527c3dfd95d24af190528cc58326b
powerpc: Handle VSX alignment faults correctly in little-endian mode

commit bb7f20b1c639606def3b91f4e4aca6daeee5d80a upstream.

This patch fixes the handling of VSX alignment faults in little-endian
mode (the current code assumes the processor is in big-endian mode).

The patch also makes the handlers clear the top 8 bytes of the register
when handling an 8 byte VSX load.

This is based on 2.6.32.

Signed-off-by: Neil Campbell <neilc@linux.vnet.ibm.com>
Acked-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/powerpc/kernel/align.c