Go to the documentation of this file.
12 #ifndef __UNICORE_THREAD_INFO_H__
13 #define __UNICORE_THREAD_INFO_H__
17 #include <linux/compiler.h>
18 #include <asm/fpstate.h>
20 #define THREAD_SIZE_ORDER 1
21 #define THREAD_SIZE 8192
22 #define THREAD_START_SP (THREAD_SIZE - 8)
29 #include <asm/types.h>
35 struct cpu_context_save {
79 #ifdef CONFIG_UNICORE_FPU_F64
85 #define INIT_THREAD_INFO(tsk) \
88 .exec_domain = &default_exec_domain, \
90 .preempt_count = INIT_PREEMPT_COUNT, \
91 .addr_limit = KERNEL_DS, \
93 .fn = do_no_restart_syscall, \
97 #define init_thread_info (init_thread_union.thread_info)
98 #define init_stack (init_thread_union.stack)
107 register unsigned long sp asm (
"sp");
111 #define thread_saved_pc(tsk) \
112 ((unsigned long)(task_thread_info(tsk)->cpu_context.pc))
113 #define thread_saved_sp(tsk) \
114 ((unsigned long)(task_thread_info(tsk)->cpu_context.sp))
115 #define thread_saved_fp(tsk) \
116 ((unsigned long)(task_thread_info(tsk)->cpu_context.fp))
124 #define PREEMPT_ACTIVE 0x40000000
133 #define TIF_SIGPENDING 0
134 #define TIF_NEED_RESCHED 1
135 #define TIF_NOTIFY_RESUME 2
136 #define TIF_SYSCALL_TRACE 8
137 #define TIF_MEMDIE 18
138 #define TIF_RESTORE_SIGMASK 20
140 #define _TIF_SIGPENDING (1 << TIF_SIGPENDING)
141 #define _TIF_NEED_RESCHED (1 << TIF_NEED_RESCHED)
142 #define _TIF_NOTIFY_RESUME (1 << TIF_NOTIFY_RESUME)
143 #define _TIF_SYSCALL_TRACE (1 << TIF_SYSCALL_TRACE)
148 #define _TIF_WORK_MASK \
149 (_TIF_SIGPENDING | _TIF_NEED_RESCHED | _TIF_NOTIFY_RESUME)