Go to the documentation of this file.
21 #ifndef _ASM_THREAD_INFO_H
22 #define _ASM_THREAD_INFO_H
27 #include <asm/processor.h>
28 #include <asm/registers.h>
32 #define THREAD_SHIFT 12
33 #define THREAD_SIZE (1<<THREAD_SHIFT)
34 #define THREAD_SIZE_ORDER (THREAD_SHIFT - PAGE_SHIFT)
72 #include <asm/asm-offsets.h>
78 #define PREEMPT_ACTIVE 0x10000000
82 #define INIT_THREAD_INFO(tsk) \
85 .exec_domain = &default_exec_domain, \
89 .addr_limit = KERNEL_DS, \
91 .fn = do_no_restart_syscall, \
97 #define init_thread_info (init_thread_union.thread_info)
98 #define init_stack (init_thread_union.stack)
101 #define qqstr(s) qstr(s)
103 #define QUOTED_THREADINFO_REG qqstr(THREADINFO_REG)
105 register struct thread_info *__current_thread_info
asm(QUOTED_THREADINFO_REG);
106 #define current_thread_info() __current_thread_info
118 #define TIF_SYSCALL_TRACE 0
119 #define TIF_NOTIFY_RESUME 1
120 #define TIF_SIGPENDING 2
121 #define TIF_NEED_RESCHED 3
122 #define TIF_SINGLESTEP 4
123 #define TIF_RESTORE_SIGMASK 6
125 #define TIF_MEMDIE 17
127 #define _TIF_SYSCALL_TRACE (1 << TIF_SYSCALL_TRACE)
128 #define _TIF_NOTIFY_RESUME (1 << TIF_NOTIFY_RESUME)
129 #define _TIF_SIGPENDING (1 << TIF_SIGPENDING)
130 #define _TIF_NEED_RESCHED (1 << TIF_NEED_RESCHED)
131 #define _TIF_SINGLESTEP (1 << TIF_SINGLESTEP)
134 #define _TIF_WORK_MASK (0x0000FFFF & ~_TIF_SYSCALL_TRACE)
137 #define _TIF_ALLWORK_MASK 0x0000FFFF