]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Fix offset of FPRs in VSX registers in little endian builds
authorAnton Blanchard <anton@samba.org>
Mon, 23 Sep 2013 02:04:37 +0000 (12:04 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 11 Oct 2013 05:48:26 +0000 (16:48 +1100)
commite7e3310b304f6f624975bc51a2532d45ccd8514d
tree4da0a3c2138309a8366036d1068567414d4a8c76
parente3b61177958b9f00c0d00c728cc9b7e65ff5cfd9
powerpc: Fix offset of FPRs in VSX registers in little endian builds

The FPRs overlap the high doublewords of the first 32 VSX registers.
Fix TS_FPROFFSET and TS_VSRLOWOFFSET so we access the correct fields
in little endian mode.

If VSX is disabled the FPRs are only one doubleword in length so
TS_FPROFFSET needs adjusting in little endian.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/processor.h