powerpc: Fix asm offsets to point to actual FP and VMX regs
authorMichael Neuling <mikey@neuling.org>
Mon, 8 May 2017 06:23:31 +0000 (16:23 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 27 Jun 2017 02:09:08 +0000 (12:09 +1000)
commitaa9a95163638bd9acb3e1f61f48cd5a000e79f03
tree68179fac864fc277174304ab0844c4b8aa501d1b
parent64ebb9a208c6e66316329a6d9101815d1ee06fa9
powerpc: Fix asm offsets to point to actual FP and VMX regs

The asm code assumes the FP regs are at the start of fp_state. While
this is true now, it may not always be the case and there is nothing
enforcing it.

This fixes the asm-offsets to point to the actual FP registers inside
the fp_state.  Similarly for VMX.

Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/asm-offsets.c