Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Heiko Carstens and committed by
Martin Schwidefsky
a05c90f1 9887a1fc

+7 -1
+1 -1
arch/s390/include/asm/compat.h
··· 169 169 170 170 static inline int is_compat_task(void) 171 171 { 172 - return test_thread_flag(TIF_31BIT); 172 + return is_32bit_task(); 173 173 } 174 174 175 175 #else
+6
arch/s390/include/asm/thread_info.h
··· 118 118 #define _TIF_SINGLE_STEP (1<<TIF_FREEZE) 119 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 127 #endif /* __KERNEL__ */ 122 128 123 129 #define PREEMPT_ACTIVE 0x4000000