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)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 18 Dec 2009 03:55:43 +0000 (14:55 +1100)
commitbb7f20b1c639606def3b91f4e4aca6daeee5d80a
tree9ccfe5acbbb9750ac5aae7048fd86b26cdf90c53
parentf04b10cddb0fbceadbad7af38c31543298948d8f
powerpc: Handle VSX alignment faults correctly in little-endian mode

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>
Cc: <stable@kernel.org>
Acked-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/align.c