Commit 467e7f50 authored by Anton Blanchard's avatar Anton Blanchard

ppc64: Temporary workaround for oops during coredump.

parent 4368448d
......@@ -69,6 +69,12 @@ enable_kernel_fp(void)
int
dump_fpu(struct pt_regs *regs, elf_fpregset_t *fpregs)
{
/*
* XXX temporary workaround until threaded coredumps for ppc64
* are implemented - Anton
*/
if (!regs)
return 0;
if (regs->msr & MSR_FP)
giveup_fpu(current);
memcpy(fpregs, &current->thread.fpr[0], sizeof(*fpregs));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment