/* fill in the FPU structure for a core dump  */
int dump_fpu(struct pt_regs *regs, elf_fpregset_t *fpreg)
/* fill in the FPU structure for a core dump  */
int dump_fpu(struct pt_regs *regs, elf_fpregset_t *fpreg)
{
	struct task_struct *tsk = current;
	int fpvalid;
	fpvalid = is_using_fpu(tsk);
	if (fpvalid) {
		unlazy_fpu(tsk);
		memcpy(fpreg, &tsk->thread.fpu_state, sizeof(*fpreg));
	}
	return fpvalid;
}