x86: mark associated mm when running a task in 32 bit compatibility mode
authorStephen Wilson <wilsons@start.ca>
Sun, 13 Mar 2011 19:49:14 +0000 (15:49 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 23 Mar 2011 20:36:53 +0000 (16:36 -0400)
commit375906f8765e131a4a159b1ffebf78c15db7b3bf
treecbd915005f0d0ca62b9e2191704624d119c4b044
parentc2ef45df3b98a027ec8f9081bd2a19dff520ef9d
x86: mark associated mm when running a task in 32 bit compatibility mode

This patch simply follows the same practice as for setting the TIF_IA32 flag.
In particular, an mm is marked as holding 32-bit tasks when a 32-bit binary is
exec'ed.  Both ELF and a.out formats are updated.

Signed-off-by: Stephen Wilson <wilsons@start.ca>
Reviewed-by: Michel Lespinasse <walken@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/x86/ia32/ia32_aout.c
arch/x86/kernel/process_64.c