aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Wilson <[email protected]>2011-03-13 15:49:13 -0400
committerAl Viro <[email protected]>2011-03-23 16:36:52 -0400
commitc2ef45df3b98a027ec8f9081bd2a19dff520ef9d (patch)
tree1df9ccca6a81471d20569e6c3196e32466a2a3fd
parent2fadaef41283aad7100fa73f01998cddaca25833 (diff)
x86: add context tag to mark mm when running a task in 32-bit compatibility mode
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 <[email protected]> Reviewed-by: Michel Lespinasse <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: "H. Peter Anvin" <[email protected]> Signed-off-by: Al Viro <[email protected]>
-rw-r--r--arch/x86/include/asm/mmu.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/include/asm/mmu.h b/arch/x86/include/asm/mmu.h
index 80a1dee5bea5..aeff3e89b222 100644
--- a/arch/x86/include/asm/mmu.h
+++ b/arch/x86/include/asm/mmu.h
@@ -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