diff options
Diffstat (limited to 'arch/microblaze/include/asm/thread_info.h')
-rw-r--r-- | arch/microblaze/include/asm/thread_info.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/microblaze/include/asm/thread_info.h b/arch/microblaze/include/asm/thread_info.h index 4c3943e3f403..7fac44498445 100644 --- a/arch/microblaze/include/asm/thread_info.h +++ b/arch/microblaze/include/asm/thread_info.h | |||
@@ -122,6 +122,8 @@ static inline struct thread_info *current_thread_info(void) | |||
122 | #define TIF_SINGLESTEP 4 | 122 | #define TIF_SINGLESTEP 4 |
123 | #define TIF_IRET 5 /* return with iret */ | 123 | #define TIF_IRET 5 /* return with iret */ |
124 | #define TIF_MEMDIE 6 | 124 | #define TIF_MEMDIE 6 |
125 | #define TIF_SYSCALL_AUDIT 9 /* syscall auditing active */ | ||
126 | #define TIF_SECCOMP 10 /* secure computing */ | ||
125 | #define TIF_FREEZE 14 /* Freezing for suspend */ | 127 | #define TIF_FREEZE 14 /* Freezing for suspend */ |
126 | 128 | ||
127 | /* FIXME change in entry.S */ | 129 | /* FIXME change in entry.S */ |
@@ -138,10 +140,17 @@ static inline struct thread_info *current_thread_info(void) | |||
138 | #define _TIF_IRET (1<<TIF_IRET) | 140 | #define _TIF_IRET (1<<TIF_IRET) |
139 | #define _TIF_POLLING_NRFLAG (1<<TIF_POLLING_NRFLAG) | 141 | #define _TIF_POLLING_NRFLAG (1<<TIF_POLLING_NRFLAG) |
140 | #define _TIF_FREEZE (1<<TIF_FREEZE) | 142 | #define _TIF_FREEZE (1<<TIF_FREEZE) |
143 | #define _TIF_SYSCALL_AUDIT (1 << TIF_SYSCALL_AUDIT) | ||
144 | #define _TIF_SECCOMP (1 << TIF_SECCOMP) | ||
141 | #define _TIF_KERNEL_TRACE (1 << TIF_KERNEL_TRACE) | 145 | #define _TIF_KERNEL_TRACE (1 << TIF_KERNEL_TRACE) |
142 | 146 | ||
147 | /* work to do in syscall trace */ | ||
148 | #define _TIF_WORK_SYSCALL_MASK (_TIF_SYSCALL_TRACE | _TIF_SINGLESTEP | \ | ||
149 | _TIF_SYSCALL_AUDIT | _TIF_SECCOMP) | ||
150 | |||
143 | /* work to do on interrupt/exception return */ | 151 | /* work to do on interrupt/exception return */ |
144 | #define _TIF_WORK_MASK 0x0000FFFE | 152 | #define _TIF_WORK_MASK 0x0000FFFE |
153 | |||
145 | /* work to do on any return to u-space */ | 154 | /* work to do on any return to u-space */ |
146 | #define _TIF_ALLWORK_MASK 0x0000FFFF | 155 | #define _TIF_ALLWORK_MASK 0x0000FFFF |
147 | 156 | ||
@@ -154,6 +163,17 @@ static inline struct thread_info *current_thread_info(void) | |||
154 | */ | 163 | */ |
155 | /* FPU was used by this task this quantum (SMP) */ | 164 | /* FPU was used by this task this quantum (SMP) */ |
156 | #define TS_USEDFPU 0x0001 | 165 | #define TS_USEDFPU 0x0001 |
166 | #define TS_RESTORE_SIGMASK 0x0002 | ||
167 | |||
168 | #ifndef __ASSEMBLY__ | ||
169 | #define HAVE_SET_RESTORE_SIGMASK 1 | ||
170 | static inline void set_restore_sigmask(void) | ||
171 | { | ||
172 | struct thread_info *ti = current_thread_info(); | ||
173 | ti->status |= TS_RESTORE_SIGMASK; | ||
174 | set_bit(TIF_SIGPENDING, (unsigned long *)&ti->flags); | ||
175 | } | ||
176 | #endif | ||
157 | 177 | ||
158 | #endif /* __KERNEL__ */ | 178 | #endif /* __KERNEL__ */ |
159 | #endif /* _ASM_MICROBLAZE_THREAD_INFO_H */ | 179 | #endif /* _ASM_MICROBLAZE_THREAD_INFO_H */ |