]> git.hungrycats.org Git - linux/commitdiff
ppc64: Temporary workaround for oops during coredump.
authorAnton Blanchard <anton@samba.org>
Fri, 17 Jan 2003 09:00:36 +0000 (20:00 +1100)
committerAnton Blanchard <anton@samba.org>
Fri, 17 Jan 2003 09:00:36 +0000 (20:00 +1100)
arch/ppc64/kernel/process.c

index 81a56e5fb35658d3f84e77aa668372c264baccc3..da4fbd31a909f6d3c6cbdd1450ad5a249afcd710 100644 (file)
@@ -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));