Go to the documentation of this file.
19 #ifndef _ASM_THREAD_INFO_H
20 #define _ASM_THREAD_INFO_H
25 #include <asm/types.h>
26 #include <asm/processor.h>
35 #define THREAD_SIZE_ORDER 0
36 #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER)
74 #define INIT_THREAD_INFO(tsk) \
77 .exec_domain = &default_exec_domain, \
81 .addr_limit = KERNEL_DS, \
83 .fn = do_no_restart_syscall, \
88 #define init_thread_info (init_thread_union.thread_info)
91 register struct thread_info *current_thread_info_reg
asm(
"r10");
92 #define current_thread_info() (current_thread_info_reg)
94 #define get_thread_info(ti) get_task_struct((ti)->task)
95 #define put_thread_info(ti) put_task_struct((ti)->task)
106 #define TIF_SYSCALL_TRACE 0
107 #define TIF_NOTIFY_RESUME 1
108 #define TIF_SIGPENDING 2
109 #define TIF_NEED_RESCHED 3
110 #define TIF_SINGLESTEP 4
113 #define TIF_SYSCALL_TRACEPOINT 8
114 #define TIF_RESTORE_SIGMASK 9
115 #define TIF_POLLING_NRFLAG 16
117 #define TIF_MEMDIE 17
119 #define _TIF_SYSCALL_TRACE (1<<TIF_SYSCALL_TRACE)
120 #define _TIF_NOTIFY_RESUME (1<<TIF_NOTIFY_RESUME)
121 #define _TIF_SIGPENDING (1<<TIF_SIGPENDING)
122 #define _TIF_NEED_RESCHED (1<<TIF_NEED_RESCHED)
123 #define _TIF_SINGLESTEP (1<<TIF_SINGLESTEP)
124 #define _TIF_POLLING_NRFLAG (1<<TIF_POLLING_NRFLAG)
129 #define _TIF_WORK_MASK (0xff & ~(_TIF_SYSCALL_TRACE|_TIF_SINGLESTEP))
131 #define tsk_is_polling(t) test_tsk_thread_flag(t, TIF_POLLING_NRFLAG)