mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-17 17:53:56 +08:00
[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>
This commit is contained in:
parent
9887a1fcdd
commit
a05c90f194
@ -169,7 +169,7 @@ static inline compat_uptr_t ptr_to_compat(void __user *uptr)
|
|||||||
|
|
||||||
static inline int is_compat_task(void)
|
static inline int is_compat_task(void)
|
||||||
{
|
{
|
||||||
return test_thread_flag(TIF_31BIT);
|
return is_32bit_task();
|
||||||
}
|
}
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
@ -118,6 +118,12 @@ static inline struct thread_info *current_thread_info(void)
|
|||||||
#define _TIF_SINGLE_STEP (1<<TIF_FREEZE)
|
#define _TIF_SINGLE_STEP (1<<TIF_FREEZE)
|
||||||
#define _TIF_FREEZE (1<<TIF_FREEZE)
|
#define _TIF_FREEZE (1<<TIF_FREEZE)
|
||||||
|
|
||||||
|
#ifdef CONFIG_64BIT
|
||||||
|
#define is_32bit_task() (test_thread_flag(TIF_31BIT))
|
||||||
|
#else
|
||||||
|
#define is_32bit_task() (1)
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* __KERNEL__ */
|
#endif /* __KERNEL__ */
|
||||||
|
|
||||||
#define PREEMPT_ACTIVE 0x4000000
|
#define PREEMPT_ACTIVE 0x4000000
|
||||||
|
Loading…
Reference in New Issue
Block a user