]> 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)
commitce56773d085be791e13c6bac743a6744701db44e
treee39412abf11011ad987f611ed75aa4fb886c4fa8
parentd7c5e41387dc81c7b1011e4c3cf2ad8b92a9dabf
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