]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
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>
Mon, 18 Jan 2010 18:34:03 +0000 (10:34 -0800)
commitac32beada1873026a419939687df7fbf060e7840
tree96bad3e45a5fd75146dc2fff8929ef1ca2888153
parent816972c12bfc3a1a92a64bf0fba633501004e4c6
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