]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Alignment handler shouldn't access VSX registers with TS_FPR
authorAnton Blanchard <anton@samba.org>
Mon, 23 Sep 2013 02:04:48 +0000 (12:04 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 11 Oct 2013 05:48:36 +0000 (16:48 +1100)
commit069692cbff39ec6ba9fbfb530c58952b7e36e96a
tree5493286829cc5510302b630b49ed0e6654594b2b
parentad1f5123f86a5f9df05bd663bcdc51f926abe00b
powerpc: Alignment handler shouldn't access VSX registers with TS_FPR

The TS_FPR macro selects the FPR component of a VSX register (the
high doubleword). emulate_vsx is using this macro to get the
address of the associated VSX register. This happens to work on big
endian, but fails on little endian.

Replace it with an explicit array access.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/align.c