]> git.karo-electronics.de Git - linux-beck.git/commitdiff
x86: add context tag to mark mm when running a task in 32-bit compatibility mode
authorStephen Wilson <wilsons@start.ca>
Sun, 13 Mar 2011 19:49:13 +0000 (15:49 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 23 Mar 2011 20:36:52 +0000 (16:36 -0400)
This tag is intended to mirror the thread info TIF_IA32 flag.  Will be used to
identify mm's which support 32 bit tasks running in compatibility mode without
requiring a reference to the task itself.

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/include/asm/mmu.h

index 80a1dee5bea5ec67bb77adf6db286f471d8006e8..aeff3e89b222edc08d31f122dc7008a0cc8466a9 100644 (file)
@@ -13,6 +13,12 @@ typedef struct {
        int size;
        struct mutex lock;
        void *vdso;
+
+#ifdef CONFIG_X86_64
+       /* True if mm supports a task running in 32 bit compatibility mode. */
+       unsigned short ia32_compat;
+#endif
+
 } mm_context_t;
 
 #ifdef CONFIG_SMP