Go to the documentation of this file.
7 #ifndef _ASM_THREAD_INFO_H
8 #define _ASM_THREAD_INFO_H
11 #include <asm/entry.h>
13 #include <linux/compiler.h>
20 #define ALIGN_PAGE_MASK 0xffffe000
25 #define THREAD_SIZE_ORDER 1
26 #define THREAD_SIZE 8192
27 #define STACK_WARN (THREAD_SIZE/8)
54 #define INIT_THREAD_INFO(tsk) \
57 .exec_domain = &default_exec_domain, \
60 .preempt_count = INIT_PREEMPT_COUNT, \
62 .fn = do_no_restart_syscall, \
65 #define init_thread_info (init_thread_union.thread_info)
66 #define init_stack (init_thread_union.stack)
76 __asm__(
"%0 = sp;" :
"=da"(ti));
86 #define TI_EXECDOMAIN 4
91 #define PREEMPT_ACTIVE 0x4000000
96 #define TIF_SYSCALL_TRACE 0
97 #define TIF_SIGPENDING 1
98 #define TIF_NEED_RESCHED 2
100 #define TIF_RESTORE_SIGMASK 5
101 #define TIF_IRQ_SYNC 7
102 #define TIF_NOTIFY_RESUME 8
103 #define TIF_SINGLESTEP 9
106 #define _TIF_SYSCALL_TRACE (1<<TIF_SYSCALL_TRACE)
107 #define _TIF_SIGPENDING (1<<TIF_SIGPENDING)
108 #define _TIF_NEED_RESCHED (1<<TIF_NEED_RESCHED)
109 #define _TIF_IRQ_SYNC (1<<TIF_IRQ_SYNC)
110 #define _TIF_NOTIFY_RESUME (1<<TIF_NOTIFY_RESUME)
111 #define _TIF_SINGLESTEP (1<<TIF_SINGLESTEP)
113 #define _TIF_WORK_MASK 0x0000FFFE