Re: powerpc: fix swapcontext backwards compatibility due to VSX ucontext changes
From: Paul Mackerras <hidden> Date: 2008-07-04 11:08:01
Michael Neuling writes:
+ /*
+ * If userspace doesn't provide enough room for VSX data,
+ * but current thread has used VSX, we don't have anywhere
+ * to store the full context back into.
+ */
+ ((ctx_size < sizeof(struct ucontext)) &&
+ (regs->msr & MSR_VSX) && old_ctx) ||
I think we need to check current->thread.used_vsr rather than
regs->msr here (in both instances of this code).
Paul.