diff options
author | Paul Mundt <lethal@linux-sh.org> | 2008-09-21 10:04:55 (GMT) |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2008-09-21 10:04:55 (GMT) |
commit | e7ab3cd251926d57ee11d7d320e8fb42c882ad22 (patch) | |
tree | 29dce1711413e010d30fb62c43cbe517a9de95bc /arch/sh/kernel/process_32.c | |
parent | 4b4cf7595a8bce9b4dd64c241a8cb7336ecb9489 (diff) | |
download | linux-fsl-qoriq-e7ab3cd251926d57ee11d7d320e8fb42c882ad22.tar.xz |
sh: Add FPU registers to regset interface.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/process_32.c')
-rw-r--r-- | arch/sh/kernel/process_32.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/arch/sh/kernel/process_32.c b/arch/sh/kernel/process_32.c index 7b013aa..b965f02 100644 --- a/arch/sh/kernel/process_32.c +++ b/arch/sh/kernel/process_32.c @@ -7,7 +7,11 @@ * * SuperH version: Copyright (C) 1999, 2000 Niibe Yutaka & Kaz Kojima * Copyright (C) 2006 Lineo Solutions Inc. support SH4A UBC - * Copyright (C) 2002 - 2007 Paul Mundt + * Copyright (C) 2002 - 2008 Paul Mundt + * + * This file is subject to the terms and conditions of the GNU General Public + * License. See the file "COPYING" in the main directory of this archive + * for more details. */ #include <linux/module.h> #include <linux/mm.h> @@ -222,10 +226,10 @@ int dump_fpu(struct pt_regs *regs, elf_fpregset_t *fpu) struct task_struct *tsk = current; fpvalid = !!tsk_used_math(tsk); - if (fpvalid) { - unlazy_fpu(tsk, regs); - memcpy(fpu, &tsk->thread.fpu.hard, sizeof(*fpu)); - } + if (fpvalid) + fpvalid = !fpregs_get(tsk, NULL, 0, + sizeof(struct user_fpu_struct), + fpu, NULL); #endif return fpvalid; |