From: Benjamin Herrenschmidt Date: Mon, 2 Jun 2008 06:22:59 +0000 (+1000) Subject: [POWERPC] Fix incorrect enabling of VMX when building signal or user context X-Git-Tag: v2.6.26-rc6~24^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0be234a46596cd19eb56d2cf46836de8221afb6b;p=pandora-kernel.git [POWERPC] Fix incorrect enabling of VMX when building signal or user context When building a signal or a ucontext, we can incorrectly set the MSR_VEC bit of the kernel pt_regs->msr before returning to userspace if the task -ever- used VMX. This can lead to funny result if that stack used it in the past, then "lost" it (ie. it wasn't enabled after a context switch for example) and then called get_context. It can end up with VMX enabled and the registers containing values from some other task. Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Paul Mackerras --- Reading git-diff-tree failed