Go to the documentation of this file. 1 #ifndef _ASM_PARISC_THREAD_INFO_H
2 #define _ASM_PARISC_THREAD_INFO_H
7 #include <asm/processor.h>
8 #include <asm/special_insns.h>
20 #define INIT_THREAD_INFO(tsk) \
23 .exec_domain = &default_exec_domain, \
26 .addr_limit = KERNEL_DS, \
27 .preempt_count = INIT_PREEMPT_COUNT, \
29 .fn = do_no_restart_syscall \
33 #define init_thread_info (init_thread_union.thread_info)
34 #define init_stack (init_thread_union.stack)
37 #define current_thread_info() ((struct thread_info *)mfctl(30))
43 #define THREAD_SIZE_ORDER 2
46 #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER)
47 #define THREAD_SHIFT (PAGE_SHIFT + THREAD_SIZE_ORDER)
49 #define PREEMPT_ACTIVE_BIT 28
50 #define PREEMPT_ACTIVE (1 << PREEMPT_ACTIVE_BIT)
55 #define TIF_SYSCALL_TRACE 0
56 #define TIF_SIGPENDING 1
57 #define TIF_NEED_RESCHED 2
58 #define TIF_POLLING_NRFLAG 3
61 #define TIF_RESTORE_SIGMASK 6
62 #define TIF_NOTIFY_RESUME 8
63 #define TIF_SINGLESTEP 9
64 #define TIF_BLOCKSTEP 10
66 #define _TIF_SYSCALL_TRACE (1 << TIF_SYSCALL_TRACE)
67 #define _TIF_SIGPENDING (1 << TIF_SIGPENDING)
68 #define _TIF_NEED_RESCHED (1 << TIF_NEED_RESCHED)
69 #define _TIF_POLLING_NRFLAG (1 << TIF_POLLING_NRFLAG)
70 #define _TIF_32BIT (1 << TIF_32BIT)
71 #define _TIF_NOTIFY_RESUME (1 << TIF_NOTIFY_RESUME)
72 #define _TIF_SINGLESTEP (1 << TIF_SINGLESTEP)
73 #define _TIF_BLOCKSTEP (1 << TIF_BLOCKSTEP)
75 #define _TIF_USER_WORK_MASK (_TIF_SIGPENDING | _TIF_NOTIFY_RESUME | \
77 #define _TIF_SYSCALL_TRACE_MASK (_TIF_SYSCALL_TRACE | _TIF_SINGLESTEP | \
80 #define tsk_is_polling(t) test_tsk_thread_flag(t, TIF_POLLING_NRFLAG)