This source file includes following definitions.
- current_thread_info
1
2 #ifndef _ASM_M68K_THREAD_INFO_H
3 #define _ASM_M68K_THREAD_INFO_H
4
5 #include <asm/types.h>
6 #include <asm/page.h>
7 #include <asm/segment.h>
8
9
10
11
12
13
14 #if PAGE_SHIFT < 13
15 #ifdef CONFIG_4KSTACKS
16 #define THREAD_SIZE 4096
17 #else
18 #define THREAD_SIZE 8192
19 #endif
20 #else
21 #define THREAD_SIZE PAGE_SIZE
22 #endif
23 #define THREAD_SIZE_ORDER ((THREAD_SIZE / PAGE_SIZE) - 1)
24
25 #ifndef __ASSEMBLY__
26
27 struct thread_info {
28 struct task_struct *task;
29 unsigned long flags;
30 mm_segment_t addr_limit;
31 int preempt_count;
32 __u32 cpu;
33 unsigned long tp_value;
34 };
35 #endif
36
37 #define INIT_THREAD_INFO(tsk) \
38 { \
39 .task = &tsk, \
40 .addr_limit = KERNEL_DS, \
41 .preempt_count = INIT_PREEMPT_COUNT, \
42 }
43
44 #ifndef __ASSEMBLY__
45
46 static inline struct thread_info *current_thread_info(void)
47 {
48 struct thread_info *ti;
49 __asm__(
50 "move.l %%sp, %0 \n\t"
51 "and.l %1, %0"
52 : "=&d"(ti)
53 : "di" (~(THREAD_SIZE-1))
54 );
55 return ti;
56 }
57 #endif
58
59
60
61
62
63 #define TIF_NOTIFY_RESUME 5
64 #define TIF_SIGPENDING 6
65 #define TIF_NEED_RESCHED 7
66 #define TIF_DELAYED_TRACE 14
67 #define TIF_SYSCALL_TRACE 15
68 #define TIF_MEMDIE 16
69 #define TIF_RESTORE_SIGMASK 18
70
71 #endif