blob: 912000710b0d437a3d936dbae556b199da733963 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
From fbd18292925805d56a91654d8fa3a268b3893985 Mon Sep 17 00:00:00 2001
From: Bruce Ashfield <bruce.ashfield@windriver.com>
Date: Thu, 8 Apr 2010 15:53:37 +0800
Subject: [PATCH] x86: add TIF_32BIT compatibility define
All other 64 bit architectures use TIF_32BIT to indicate
that a process is running in a 32 bit space. x86 uses
TIF_IA32. This difference means that you either have
cumbersome defines in common code, or you unify the
syntax.
In this case, we'll add a TIF_32BIT define to track the
TIF_IA32 variant and our common defines will work properly.
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
---
arch/x86/include/asm/thread_info.h | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/arch/x86/include/asm/thread_info.h b/arch/x86/include/asm/thread_info.h
index e0d2890..c3b2575 100644
--- a/arch/x86/include/asm/thread_info.h
+++ b/arch/x86/include/asm/thread_info.h
@@ -86,6 +86,7 @@ struct thread_info {
#define TIF_USER_RETURN_NOTIFY 11 /* notify kernel of userspace return */
#define TIF_NOTSC 16 /* TSC is not accessible in userland */
#define TIF_IA32 17 /* 32bit process */
+#define TIF_32BIT TIF_IA32 /* 32bit process */
#define TIF_FORK 18 /* ret_from_fork */
#define TIF_MEMDIE 20
#define TIF_DEBUG 21 /* uses debug registers */
--
1.6.5.2
|