hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/arch/sparc/include/asm/thread_info_64.h
....@@ -121,8 +121,12 @@
121121 }
122122
123123 /* how to get the thread information struct from C */
124
+#ifndef BUILD_VDSO
124125 register struct thread_info *current_thread_info_reg asm("g6");
125126 #define current_thread_info() (current_thread_info_reg)
127
+#else
128
+extern struct thread_info *current_thread_info(void);
129
+#endif
126130
127131 /* thread information allocation */
128132 #if PAGE_SHIFT == 13
....@@ -176,7 +180,7 @@
176180 #define TIF_NOTIFY_RESUME 1 /* callback before returning to user */
177181 #define TIF_SIGPENDING 2 /* signal pending */
178182 #define TIF_NEED_RESCHED 3 /* rescheduling necessary */
179
-/* flag bit 4 is available */
183
+#define TIF_NOTIFY_SIGNAL 4 /* signal notifications exist */
180184 #define TIF_UNALIGNED 5 /* allowed to do unaligned accesses */
181185 #define TIF_UPROBE 6 /* breakpointed or singlestepped */
182186 #define TIF_32BIT 7 /* 32-bit binary */
....@@ -196,6 +200,7 @@
196200 #define _TIF_NOTIFY_RESUME (1<<TIF_NOTIFY_RESUME)
197201 #define _TIF_SIGPENDING (1<<TIF_SIGPENDING)
198202 #define _TIF_NEED_RESCHED (1<<TIF_NEED_RESCHED)
203
+#define _TIF_NOTIFY_SIGNAL (1<<TIF_NOTIFY_SIGNAL)
199204 #define _TIF_UNALIGNED (1<<TIF_UNALIGNED)
200205 #define _TIF_UPROBE (1<<TIF_UPROBE)
201206 #define _TIF_32BIT (1<<TIF_32BIT)
....@@ -209,7 +214,8 @@
209214 _TIF_DO_NOTIFY_RESUME_MASK | \
210215 _TIF_NEED_RESCHED)
211216 #define _TIF_DO_NOTIFY_RESUME_MASK (_TIF_NOTIFY_RESUME | \
212
- _TIF_SIGPENDING | _TIF_UPROBE)
217
+ _TIF_SIGPENDING | _TIF_UPROBE | \
218
+ _TIF_NOTIFY_SIGNAL)
213219
214220 #define is_32bit_task() (test_thread_flag(TIF_32BIT))
215221