hc
2024-11-01 2f529f9b558ca1c1bd74be7437a84e4711743404
kernel/arch/arm/include/asm/thread_info.h
....@@ -21,6 +21,7 @@
2121
2222 struct task_struct;
2323
24
+#include <dovetail/thread_info.h>
2425 #include <asm/types.h>
2526
2627 typedef unsigned long mm_segment_t;
....@@ -45,6 +46,7 @@
4546 */
4647 struct thread_info {
4748 unsigned long flags; /* low level flags */
49
+ __u32 local_flags; /* local (synchronous) flags */
4850 int preempt_count; /* 0 => preemptable, <0 => bug */
4951 mm_segment_t addr_limit; /* address limit */
5052 struct task_struct *task; /* main task structure */
....@@ -65,15 +67,19 @@
6567 #ifdef CONFIG_ARM_THUMBEE
6668 unsigned long thumbee_state; /* ThumbEE Handler Base register */
6769 #endif
70
+ struct oob_thread_state oob_state; /* co-kernel thread state */
6871 };
6972
7073 #define INIT_THREAD_INFO(tsk) \
7174 { \
7275 .task = &tsk, \
7376 .flags = 0, \
77
+ .local_flags = 0, \
7478 .preempt_count = INIT_PREEMPT_COUNT, \
7579 .addr_limit = KERNEL_DS, \
7680 }
81
+
82
+#define ti_local_flags(__ti) ((__ti)->local_flags)
7783
7884 /*
7985 * how to get the thread information struct from C
....@@ -142,6 +148,8 @@
142148 #define TIF_USING_IWMMXT 17
143149 #define TIF_MEMDIE 18 /* is terminating due to OOM killer */
144150 #define TIF_RESTORE_SIGMASK 20
151
+#define TIF_MAYDAY 21 /* emergency trap pending */
152
+#define TIF_RETUSER 22 /* INBAND_TASK_RETUSER is pending */
145153
146154 #define _TIF_SIGPENDING (1 << TIF_SIGPENDING)
147155 #define _TIF_NEED_RESCHED (1 << TIF_NEED_RESCHED)
....@@ -153,6 +161,8 @@
153161 #define _TIF_SECCOMP (1 << TIF_SECCOMP)
154162 #define _TIF_NOTIFY_SIGNAL (1 << TIF_NOTIFY_SIGNAL)
155163 #define _TIF_USING_IWMMXT (1 << TIF_USING_IWMMXT)
164
+#define _TIF_MAYDAY (1 << TIF_MAYDAY)
165
+#define _TIF_RETUSER (1 << TIF_RETUSER)
156166
157167 /* Checks for any syscall work in entry-common.S */
158168 #define _TIF_SYSCALL_WORK (_TIF_SYSCALL_TRACE | _TIF_SYSCALL_AUDIT | \
....@@ -163,7 +173,15 @@
163173 */
164174 #define _TIF_WORK_MASK (_TIF_NEED_RESCHED | _TIF_SIGPENDING | \
165175 _TIF_NOTIFY_RESUME | _TIF_UPROBE | \
166
- _TIF_NOTIFY_SIGNAL)
176
+ _TIF_NOTIFY_SIGNAL | _TIF_RETUSER)
177
+
178
+/*
179
+ * Local (synchronous) thread flags.
180
+ */
181
+#define _TLF_OOB 0x0001
182
+#define _TLF_DOVETAIL 0x0002
183
+#define _TLF_OFFSTAGE 0x0004
184
+#define _TLF_OOBTRAP 0x0008
167185
168186 #endif /* __KERNEL__ */
169187 #endif /* __ASM_ARM_THREAD_INFO_H */