diff options
author | Christoph Lameter <clameter@sgi.com> | 2008-04-28 21:52:39 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-05-12 15:28:03 -0400 |
commit | 00c1bb133cf351fa3904b00a48a9cf535d018de6 (patch) | |
tree | cbba176a82bf8f4f8d9e2b127468f1ef2c021123 /include | |
parent | e57549b017552f7a493b366f5ccd4781801083e4 (diff) |
x86: thread_info: merge tif masks
The TIF masks are basically the same. x86_32 also has _TIF_SYSCALL_EMU which is
zero for the 64 bit case. The tif masks become the same.
x86_64 has an additional _TIF_DONOTIFY_MASK. Does not hurt for the 32 bit case
since it is only used in x86_64 arch code.
Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-x86/thread_info.h | 51 |
1 files changed, 21 insertions, 30 deletions
diff --git a/include/asm-x86/thread_info.h b/include/asm-x86/thread_info.h index 983743a14b99..b7cd41308e56 100644 --- a/include/asm-x86/thread_info.h +++ b/include/asm-x86/thread_info.h | |||
@@ -123,6 +123,27 @@ struct thread_info { | |||
123 | #define _TIF_DS_AREA_MSR (1 << TIF_DS_AREA_MSR) | 123 | #define _TIF_DS_AREA_MSR (1 << TIF_DS_AREA_MSR) |
124 | #define _TIF_BTS_TRACE_TS (1 << TIF_BTS_TRACE_TS) | 124 | #define _TIF_BTS_TRACE_TS (1 << TIF_BTS_TRACE_TS) |
125 | 125 | ||
126 | /* work to do on interrupt/exception return */ | ||
127 | #define _TIF_WORK_MASK \ | ||
128 | (0x0000FFFF & \ | ||
129 | ~(_TIF_SYSCALL_TRACE|_TIF_SYSCALL_AUDIT|_TIF_SINGLESTEP| \ | ||
130 | _TIF_SECCOMP|_TIF_SYSCALL_EMU)) | ||
131 | |||
132 | /* work to do on any return to user space */ | ||
133 | #define _TIF_ALLWORK_MASK (0x0000FFFF & ~_TIF_SECCOMP) | ||
134 | |||
135 | #define _TIF_DO_NOTIFY_MASK \ | ||
136 | (_TIF_SIGPENDING|_TIF_SINGLESTEP|_TIF_MCE_NOTIFY|_TIF_HRTICK_RESCHED) | ||
137 | |||
138 | /* flags to check in __switch_to() */ | ||
139 | #define _TIF_WORK_CTXSW \ | ||
140 | (_TIF_IO_BITMAP|_TIF_DEBUGCTLMSR|_TIF_DS_AREA_MSR|_TIF_BTS_TRACE_TS| \ | ||
141 | _TIF_NOTSC) | ||
142 | |||
143 | #define _TIF_WORK_CTXSW_PREV _TIF_WORK_CTXSW | ||
144 | #define _TIF_WORK_CTXSW_NEXT (_TIF_WORK_CTXSW|_TIF_DEBUG) | ||
145 | |||
146 | |||
126 | #define PREEMPT_ACTIVE 0x10000000 | 147 | #define PREEMPT_ACTIVE 0x10000000 |
127 | 148 | ||
128 | #ifdef CONFIG_X86_32 | 149 | #ifdef CONFIG_X86_32 |
@@ -174,20 +195,6 @@ static inline struct thread_info *current_thread_info(void) | |||
174 | 195 | ||
175 | #endif | 196 | #endif |
176 | 197 | ||
177 | /* work to do on interrupt/exception return */ | ||
178 | #define _TIF_WORK_MASK \ | ||
179 | (0x0000FFFF & ~(_TIF_SYSCALL_TRACE | _TIF_SYSCALL_AUDIT | \ | ||
180 | _TIF_SECCOMP | _TIF_SYSCALL_EMU)) | ||
181 | /* work to do on any return to u-space */ | ||
182 | #define _TIF_ALLWORK_MASK (0x0000FFFF & ~_TIF_SECCOMP) | ||
183 | |||
184 | /* flags to check in __switch_to() */ | ||
185 | #define _TIF_WORK_CTXSW \ | ||
186 | (_TIF_IO_BITMAP | _TIF_NOTSC | _TIF_DEBUGCTLMSR | \ | ||
187 | _TIF_DS_AREA_MSR | _TIF_BTS_TRACE_TS) | ||
188 | #define _TIF_WORK_CTXSW_PREV _TIF_WORK_CTXSW | ||
189 | #define _TIF_WORK_CTXSW_NEXT (_TIF_WORK_CTXSW | _TIF_DEBUG) | ||
190 | |||
191 | #else /* X86_32 */ | 198 | #else /* X86_32 */ |
192 | 199 | ||
193 | #include <asm/pda.h> | 200 | #include <asm/pda.h> |
@@ -231,22 +238,6 @@ static inline struct thread_info *stack_thread_info(void) | |||
231 | 238 | ||
232 | #endif | 239 | #endif |
233 | 240 | ||
234 | /* work to do on interrupt/exception return */ | ||
235 | #define _TIF_WORK_MASK \ | ||
236 | (0x0000FFFF & \ | ||
237 | ~(_TIF_SYSCALL_TRACE|_TIF_SYSCALL_AUDIT|_TIF_SINGLESTEP|_TIF_SECCOMP)) | ||
238 | /* work to do on any return to user space */ | ||
239 | #define _TIF_ALLWORK_MASK (0x0000FFFF & ~_TIF_SECCOMP) | ||
240 | |||
241 | #define _TIF_DO_NOTIFY_MASK \ | ||
242 | (_TIF_SIGPENDING|_TIF_SINGLESTEP|_TIF_MCE_NOTIFY|_TIF_HRTICK_RESCHED) | ||
243 | |||
244 | /* flags to check in __switch_to() */ | ||
245 | #define _TIF_WORK_CTXSW \ | ||
246 | (_TIF_IO_BITMAP|_TIF_DEBUGCTLMSR|_TIF_DS_AREA_MSR|_TIF_BTS_TRACE_TS|_TIF_NOTSC) | ||
247 | #define _TIF_WORK_CTXSW_PREV _TIF_WORK_CTXSW | ||
248 | #define _TIF_WORK_CTXSW_NEXT (_TIF_WORK_CTXSW|_TIF_DEBUG) | ||
249 | |||
250 | #endif /* !X86_32 */ | 241 | #endif /* !X86_32 */ |
251 | 242 | ||
252 | /* | 243 | /* |