Go to the documentation of this file.
8 #ifndef __ASM_AVR32_THREAD_INFO_H
9 #define __ASM_AVR32_THREAD_INFO_H
13 #define THREAD_SIZE_ORDER 1
14 #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER)
17 #include <asm/types.h>
37 #define INIT_THREAD_INFO(tsk) \
40 .exec_domain = &default_exec_domain, \
43 .preempt_count = INIT_PREEMPT_COUNT, \
45 .fn = do_no_restart_syscall \
49 #define init_thread_info (init_thread_union.thread_info)
50 #define init_stack (init_thread_union.stack)
60 asm(
"and %0, sp" :
"=r"(
addr) :
"0"(addr));
64 #define get_thread_info(ti) get_task_struct((ti)->task)
65 #define put_thread_info(ti) put_task_struct((ti)->task)
69 #define PREEMPT_ACTIVE 0x40000000
77 #define TIF_SYSCALL_TRACE 0
78 #define TIF_SIGPENDING 1
79 #define TIF_NEED_RESCHED 2
80 #define TIF_BREAKPOINT 4
81 #define TIF_SINGLE_STEP 5
83 #define TIF_RESTORE_SIGMASK 7
84 #define TIF_CPU_GOING_TO_SLEEP 8
85 #define TIF_NOTIFY_RESUME 9
87 #define TIF_USERSPACE 31
89 #define _TIF_SYSCALL_TRACE (1 << TIF_SYSCALL_TRACE)
90 #define _TIF_SIGPENDING (1 << TIF_SIGPENDING)
91 #define _TIF_NEED_RESCHED (1 << TIF_NEED_RESCHED)
92 #define _TIF_BREAKPOINT (1 << TIF_BREAKPOINT)
93 #define _TIF_SINGLE_STEP (1 << TIF_SINGLE_STEP)
94 #define _TIF_MEMDIE (1 << TIF_MEMDIE)
95 #define _TIF_CPU_GOING_TO_SLEEP (1 << TIF_CPU_GOING_TO_SLEEP)
96 #define _TIF_NOTIFY_RESUME (1 << TIF_NOTIFY_RESUME)
101 #define _TIF_WORK_MASK \
103 | _TIF_NOTIFY_RESUME \
104 | _TIF_NEED_RESCHED \
108 #define _TIF_ALLWORK_MASK (_TIF_WORK_MASK | _TIF_SYSCALL_TRACE)
110 #define _TIF_DBGWORK_MASK (_TIF_WORK_MASK & ~_TIF_BREAKPOINT)