diff options
Diffstat (limited to 'arch/sh/include/asm/thread_info.h')
-rw-r--r-- | arch/sh/include/asm/thread_info.h | 40 |
1 files changed, 28 insertions, 12 deletions
diff --git a/arch/sh/include/asm/thread_info.h b/arch/sh/include/asm/thread_info.h index eeb4c747119e..c05b1afd1324 100644 --- a/arch/sh/include/asm/thread_info.h +++ b/arch/sh/include/asm/thread_info.h | |||
@@ -123,18 +123,34 @@ static inline struct thread_info *current_thread_info(void) | |||
123 | #define TIF_MEMDIE 18 | 123 | #define TIF_MEMDIE 18 |
124 | #define TIF_FREEZE 19 | 124 | #define TIF_FREEZE 19 |
125 | 125 | ||
126 | #define _TIF_SYSCALL_TRACE (1<<TIF_SYSCALL_TRACE) | 126 | #define _TIF_SYSCALL_TRACE (1 << TIF_SYSCALL_TRACE) |
127 | #define _TIF_SIGPENDING (1<<TIF_SIGPENDING) | 127 | #define _TIF_SIGPENDING (1 << TIF_SIGPENDING) |
128 | #define _TIF_NEED_RESCHED (1<<TIF_NEED_RESCHED) | 128 | #define _TIF_NEED_RESCHED (1 << TIF_NEED_RESCHED) |
129 | #define _TIF_RESTORE_SIGMASK (1<<TIF_RESTORE_SIGMASK) | 129 | #define _TIF_RESTORE_SIGMASK (1 << TIF_RESTORE_SIGMASK) |
130 | #define _TIF_SINGLESTEP (1<<TIF_SINGLESTEP) | 130 | #define _TIF_SINGLESTEP (1 << TIF_SINGLESTEP) |
131 | #define _TIF_SYSCALL_AUDIT (1<<TIF_SYSCALL_AUDIT) | 131 | #define _TIF_SYSCALL_AUDIT (1 << TIF_SYSCALL_AUDIT) |
132 | #define _TIF_USEDFPU (1<<TIF_USEDFPU) | 132 | #define _TIF_USEDFPU (1 << TIF_USEDFPU) |
133 | #define _TIF_POLLING_NRFLAG (1<<TIF_POLLING_NRFLAG) | 133 | #define _TIF_POLLING_NRFLAG (1 << TIF_POLLING_NRFLAG) |
134 | #define _TIF_FREEZE (1<<TIF_FREEZE) | 134 | #define _TIF_FREEZE (1 << TIF_FREEZE) |
135 | 135 | ||
136 | #define _TIF_WORK_MASK 0x000000FE /* work to do on interrupt/exception return */ | 136 | /* |
137 | #define _TIF_ALLWORK_MASK 0x000000FF /* work to do on any return to u-space */ | 137 | * _TIF_ALLWORK_MASK and _TIF_WORK_MASK need to fit within a byte, or we |
138 | * blow the tst immediate size constraints and need to fix up | ||
139 | * arch/sh/kernel/entry-common.S. | ||
140 | */ | ||
141 | |||
142 | /* work to do in syscall trace */ | ||
143 | #define _TIF_WORK_SYSCALL_MASK (_TIF_SYSCALL_TRACE | _TIF_SINGLESTEP | \ | ||
144 | _TIF_SYSCALL_AUDIT) | ||
145 | |||
146 | /* work to do on any return to u-space */ | ||
147 | #define _TIF_ALLWORK_MASK (_TIF_SYSCALL_TRACE | _TIF_SIGPENDING | \ | ||
148 | _TIF_NEED_RESCHED | _TIF_SYSCALL_AUDIT | \ | ||
149 | _TIF_SINGLESTEP | _TIF_RESTORE_SIGMASK) | ||
150 | |||
151 | /* work to do on interrupt/exception return */ | ||
152 | #define _TIF_WORK_MASK (_TIF_ALLWORK_MASK & ~(_TIF_SYSCALL_TRACE | \ | ||
153 | _TIF_SYSCALL_AUDIT | _TIF_SINGLESTEP)) | ||
138 | 154 | ||
139 | #endif /* __KERNEL__ */ | 155 | #endif /* __KERNEL__ */ |
140 | 156 | ||