From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.perfora.net (mout.perfora.net [74.208.4.194]) by ozlabs.org (Postfix) with ESMTP id AE5A0B70E3 for ; Wed, 9 Mar 2011 11:39:14 +1100 (EST) From: Stephen Wilson To: x86@kernel.org Subject: [PATCH 1/5] x86: add context tag to mark mm when running a task in 32-bit compatibility mode Date: Tue, 8 Mar 2011 19:31:57 -0500 Message-Id: <1299630721-4337-2-git-send-email-wilsons@start.ca> In-Reply-To: <1299630721-4337-1-git-send-email-wilsons@start.ca> References: <1299630721-4337-1-git-send-email-wilsons@start.ca> Cc: linux-s390@vger.kernel.org, Andi Kleen , Paul Mundt , linux-sh@vger.kernel.org, Heiko Carstens , linux-kernel@vger.kernel.org, Stephen Wilson , linux-mm@kvack.org, Ingo Molnar , Paul Mackerras , Alexander Viro , "H. Peter Anvin" , Martin Schwidefsky , linux390@de.ibm.com, Thomas Gleixner , Michel Lespinasse , linuxppc-dev@lists.ozlabs.org, Andrew Morton List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 --- arch/x86/include/asm/mmu.h | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/arch/x86/include/asm/mmu.h b/arch/x86/include/asm/mmu.h index 80a1dee..8a2e5b4 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 compat; +#endif + } mm_context_t; #ifdef CONFIG_SMP -- 1.7.3.5