|
@@ -71,6 +71,7 @@ struct thread_info {
|
|
* Warning: layout of LSW is hardcoded in entry.S
|
|
* Warning: layout of LSW is hardcoded in entry.S
|
|
*/
|
|
*/
|
|
#define TIF_SYSCALL_TRACE 0 /* syscall trace active */
|
|
#define TIF_SYSCALL_TRACE 0 /* syscall trace active */
|
|
|
|
+#define TIF_NOTIFY_RESUME 1 /* callback before returning to user */
|
|
#define TIF_SIGPENDING 2 /* signal pending */
|
|
#define TIF_SIGPENDING 2 /* signal pending */
|
|
#define TIF_NEED_RESCHED 3 /* rescheduling necessary */
|
|
#define TIF_NEED_RESCHED 3 /* rescheduling necessary */
|
|
#define TIF_SINGLESTEP 4 /* reenable singlestep on user return*/
|
|
#define TIF_SINGLESTEP 4 /* reenable singlestep on user return*/
|
|
@@ -93,6 +94,7 @@ struct thread_info {
|
|
#define TIF_BTS_TRACE_TS 27 /* record scheduling event timestamps */
|
|
#define TIF_BTS_TRACE_TS 27 /* record scheduling event timestamps */
|
|
|
|
|
|
#define _TIF_SYSCALL_TRACE (1 << TIF_SYSCALL_TRACE)
|
|
#define _TIF_SYSCALL_TRACE (1 << TIF_SYSCALL_TRACE)
|
|
|
|
+#define _TIF_NOTIFY_RESUME (1 << TIF_NOTIFY_RESUME)
|
|
#define _TIF_SIGPENDING (1 << TIF_SIGPENDING)
|
|
#define _TIF_SIGPENDING (1 << TIF_SIGPENDING)
|
|
#define _TIF_SINGLESTEP (1 << TIF_SINGLESTEP)
|
|
#define _TIF_SINGLESTEP (1 << TIF_SINGLESTEP)
|
|
#define _TIF_NEED_RESCHED (1 << TIF_NEED_RESCHED)
|
|
#define _TIF_NEED_RESCHED (1 << TIF_NEED_RESCHED)
|
|
@@ -133,7 +135,7 @@ struct thread_info {
|
|
|
|
|
|
/* Only used for 64 bit */
|
|
/* Only used for 64 bit */
|
|
#define _TIF_DO_NOTIFY_MASK \
|
|
#define _TIF_DO_NOTIFY_MASK \
|
|
- (_TIF_SIGPENDING|_TIF_MCE_NOTIFY)
|
|
|
|
|
|
+ (_TIF_SIGPENDING|_TIF_MCE_NOTIFY|_TIF_NOTIFY_RESUME)
|
|
|
|
|
|
/* flags to check in __switch_to() */
|
|
/* flags to check in __switch_to() */
|
|
#define _TIF_WORK_CTXSW \
|
|
#define _TIF_WORK_CTXSW \
|