Benjamin Herrenschmidt 0be234a465 [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 <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2008-06-09 11:32:36 +10:00
..
2008-06-02 20:38:15 +01:00
2008-05-16 17:22:20 -04:00
2008-05-27 13:24:39 -07:00
2008-05-16 17:22:20 -04:00
2008-05-30 10:03:36 +02:00
2008-06-03 20:30:10 +09:00
2008-06-03 15:21:21 -07:00
2008-06-06 11:29:10 -07:00
2008-05-16 17:22:20 -04:00
2008-04-29 08:06:11 -07:00