diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2011-01-12 03:55:29 -0500 |
---|---|---|
committer | Martin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com> | 2011-01-12 03:55:25 -0500 |
commit | a05c90f1948baacedd0c3e7e3250225be4cae727 (patch) | |
tree | 4c3f2e2b692c1b4915b8bef40ad591dfc3e7edcc /arch/s390/include/asm/thread_info.h | |
parent | 9887a1fcddef1386d3387edf6497d08670460edb (diff) |
[S390] Add is_32bit_task() helper function
Helper function which tells us if a task is running in ESA mode.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/include/asm/thread_info.h')
-rw-r--r-- | arch/s390/include/asm/thread_info.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/s390/include/asm/thread_info.h b/arch/s390/include/asm/thread_info.h index ebc77091466f..ad1382f7932e 100644 --- a/arch/s390/include/asm/thread_info.h +++ b/arch/s390/include/asm/thread_info.h | |||
@@ -118,6 +118,12 @@ static inline struct thread_info *current_thread_info(void) | |||
118 | #define _TIF_SINGLE_STEP (1<<TIF_FREEZE) | 118 | #define _TIF_SINGLE_STEP (1<<TIF_FREEZE) |
119 | #define _TIF_FREEZE (1<<TIF_FREEZE) | 119 | #define _TIF_FREEZE (1<<TIF_FREEZE) |
120 | 120 | ||
121 | #ifdef CONFIG_64BIT | ||
122 | #define is_32bit_task() (test_thread_flag(TIF_31BIT)) | ||
123 | #else | ||
124 | #define is_32bit_task() (1) | ||
125 | #endif | ||
126 | |||
121 | #endif /* __KERNEL__ */ | 127 | #endif /* __KERNEL__ */ |
122 | 128 | ||
123 | #define PREEMPT_ACTIVE 0x4000000 | 129 | #define PREEMPT_ACTIVE 0x4000000 |