Go to the documentation of this file.
7 #ifndef _ASM_THREAD_INFO_H
8 #define _ASM_THREAD_INFO_H
14 #define THREAD_ORDER 1
18 #define THREAD_ORDER 2
21 #define THREAD_ORDER 1
26 #define THREAD_SIZE (PAGE_SIZE << THREAD_ORDER)
27 #define ASYNC_SIZE (PAGE_SIZE << ASYNC_ORDER)
32 #include <asm/processor.h>
56 #define INIT_THREAD_INFO(tsk) \
59 .exec_domain = &default_exec_domain, \
62 .preempt_count = INIT_PREEMPT_COUNT, \
64 .fn = do_no_restart_syscall, \
68 #define init_thread_info (init_thread_union.thread_info)
69 #define init_stack (init_thread_union.stack)
77 #define THREAD_SIZE_ORDER THREAD_ORDER
85 #define TIF_NOTIFY_RESUME 1
86 #define TIF_SIGPENDING 2
87 #define TIF_NEED_RESCHED 3
88 #define TIF_PER_TRAP 6
89 #define TIF_MCCK_PENDING 7
90 #define TIF_SYSCALL_TRACE 8
91 #define TIF_SYSCALL_AUDIT 9
92 #define TIF_SECCOMP 10
93 #define TIF_SYSCALL_TRACEPOINT 11
96 #define TIF_RESTORE_SIGMASK 19
97 #define TIF_SINGLE_STEP 20
99 #define _TIF_SYSCALL (1<<TIF_SYSCALL)
100 #define _TIF_NOTIFY_RESUME (1<<TIF_NOTIFY_RESUME)
101 #define _TIF_SIGPENDING (1<<TIF_SIGPENDING)
102 #define _TIF_NEED_RESCHED (1<<TIF_NEED_RESCHED)
103 #define _TIF_PER_TRAP (1<<TIF_PER_TRAP)
104 #define _TIF_MCCK_PENDING (1<<TIF_MCCK_PENDING)
105 #define _TIF_SYSCALL_TRACE (1<<TIF_SYSCALL_TRACE)
106 #define _TIF_SYSCALL_AUDIT (1<<TIF_SYSCALL_AUDIT)
107 #define _TIF_SECCOMP (1<<TIF_SECCOMP)
108 #define _TIF_SYSCALL_TRACEPOINT (1<<TIF_SYSCALL_TRACEPOINT)
109 #define _TIF_31BIT (1<<TIF_31BIT)
110 #define _TIF_SINGLE_STEP (1<<TIF_SINGLE_STEP)
113 #define is_32bit_task() (test_thread_flag(TIF_31BIT))
115 #define is_32bit_task() (1)
118 #define PREEMPT_ACTIVE 0x4000000