]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit15a0ebc7b7491324be11beef397eb21e51661459
treee39412abf11011ad987f611ed75aa4fb886c4fa8
parentda2751bcb57dc5b6cf1086243cc4f60d26a3dd77
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