Go to the documentation of this file.
13 #ifndef _ASM_THREAD_INFO_H
14 #define _ASM_THREAD_INFO_H
19 #include <asm/processor.h>
22 #define THREAD_SIZE 8192
51 #include <asm/asm-offsets.h>
55 #define PREEMPT_ACTIVE 0x10000000
62 #define INIT_THREAD_INFO(tsk) \
65 .exec_domain = &default_exec_domain, \
68 .preempt_count = INIT_PREEMPT_COUNT, \
69 .addr_limit = KERNEL_DS, \
71 .fn = do_no_restart_syscall, \
75 #define init_thread_info (init_thread_union.thread_info)
76 #define init_stack (init_thread_union.stack)
79 register struct thread_info *__current_thread_info
asm(
"gr15");
81 #define current_thread_info() ({ __current_thread_info; })
91 #define TIF_SYSCALL_TRACE 0
92 #define TIF_NOTIFY_RESUME 1
93 #define TIF_SIGPENDING 2
94 #define TIF_NEED_RESCHED 3
95 #define TIF_SINGLESTEP 4
96 #define TIF_RESTORE_SIGMASK 5
99 #define _TIF_SYSCALL_TRACE (1 << TIF_SYSCALL_TRACE)
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_SINGLESTEP (1 << TIF_SINGLESTEP)
106 #define _TIF_WORK_MASK \
107 (_TIF_NOTIFY_RESUME | _TIF_SIGPENDING | _TIF_NEED_RESCHED | _TIF_SINGLESTEP)
110 #define _TIF_ALLWORK_MASK (_TIF_WORK_MASK | _TIF_SYSCALL_TRACE)
112 #if _TIF_ALLWORK_MASK >= 0x2000
113 #error "_TIF_ALLWORK_MASK won't fit in an ANDI now (see entry.S)"
123 #define TS_USEDFPM 0x0001