diff options
Diffstat (limited to 'arch/parisc/include/asm/thread_info.h')
| -rw-r--r-- | arch/parisc/include/asm/thread_info.h | 17 | 
1 files changed, 13 insertions, 4 deletions
diff --git a/arch/parisc/include/asm/thread_info.h b/arch/parisc/include/asm/thread_info.h index 540c88fa8f8..4b9b10ce1f9 100644 --- a/arch/parisc/include/asm/thread_info.h +++ b/arch/parisc/include/asm/thread_info.h @@ -46,9 +46,6 @@ struct thread_info {  #define THREAD_SIZE             (PAGE_SIZE << THREAD_SIZE_ORDER)  #define THREAD_SHIFT            (PAGE_SHIFT + THREAD_SIZE_ORDER) -#define PREEMPT_ACTIVE_BIT	28 -#define PREEMPT_ACTIVE		(1 << PREEMPT_ACTIVE_BIT) -  /*   * thread information flags   */ @@ -59,6 +56,7 @@ struct thread_info {  #define TIF_32BIT               4       /* 32 bit binary */  #define TIF_MEMDIE		5	/* is terminating due to OOM killer */  #define TIF_RESTORE_SIGMASK	6	/* restore saved signal mask */ +#define TIF_SYSCALL_AUDIT	7	/* syscall auditing active */  #define TIF_NOTIFY_RESUME	8	/* callback before returning to user */  #define TIF_SINGLESTEP		9	/* single stepping? */  #define TIF_BLOCKSTEP		10	/* branch stepping? */ @@ -68,6 +66,7 @@ struct thread_info {  #define _TIF_NEED_RESCHED	(1 << TIF_NEED_RESCHED)  #define _TIF_POLLING_NRFLAG	(1 << TIF_POLLING_NRFLAG)  #define _TIF_32BIT		(1 << TIF_32BIT) +#define _TIF_SYSCALL_AUDIT	(1 << TIF_SYSCALL_AUDIT)  #define _TIF_NOTIFY_RESUME	(1 << TIF_NOTIFY_RESUME)  #define _TIF_SINGLESTEP		(1 << TIF_SINGLESTEP)  #define _TIF_BLOCKSTEP		(1 << TIF_BLOCKSTEP) @@ -75,7 +74,17 @@ struct thread_info {  #define _TIF_USER_WORK_MASK     (_TIF_SIGPENDING | _TIF_NOTIFY_RESUME | \                                   _TIF_NEED_RESCHED)  #define _TIF_SYSCALL_TRACE_MASK (_TIF_SYSCALL_TRACE | _TIF_SINGLESTEP |	\ -				 _TIF_BLOCKSTEP) +				 _TIF_BLOCKSTEP | _TIF_SYSCALL_AUDIT) + +#ifdef CONFIG_64BIT +# ifdef CONFIG_COMPAT +#  define is_32bit_task()	(test_thread_flag(TIF_32BIT)) +# else +#  define is_32bit_task()	(0) +# endif +#else +# define is_32bit_task()	(1) +#endif  #endif /* __KERNEL__ */  | 
