MIPS: Don't assume 64-bit FP registers for dump_{,task_}fpu
authorPaul Burton <paul.burton@imgtec.com>
Mon, 27 Jan 2014 15:23:06 +0000 (15:23 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 26 Mar 2014 22:09:10 +0000 (23:09 +0100)
commit6cec7c4ad79f8fd66574044adfa284b20ee7c4fd
treee39412abf11011ad987f611ed75aa4fb886c4fa8
parentef1c47afc0e1b7cd1b0102e02d3c3a57fe5f16d8
MIPS: Don't assume 64-bit FP registers for dump_{,task_}fpu

This code assumed that saved FP registers are 64 bits wide, an
assumption which will no longer be true once MSA is introduced. This
patch modifies the code to copy the lower 64 bits of each register in
turn, which is safe for any FP register width >= 64 bits.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/6425/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/process.c