···601601 * gcc should eliminate the ->thread_info dereference if602602 * has_secure_computing returns 0 at compile time (SECCOMP=n).603603 */604604- prev = prev_p->thread_info;605605- next = next_p->thread_info;604604+ prev = task_thread_info(prev_p);605605+ next = task_thread_info(next_p);606606607607 if (has_secure_computing(prev) || has_secure_computing(next)) {608608 /* slow path here */
+1-1
arch/i386/kernel/vm86.c
···311311 "movl %1,%%ebp\n\t"312312 "jmp resume_userspace"313313 : /* no outputs */314314- :"r" (&info->regs), "r" (tsk->thread_info) : "ax");314314+ :"r" (&info->regs), "r" (task_thread_info(tsk)) : "ax");315315 /* we never return here */316316}317317
+4-4
include/asm-i386/i387.h
···4949 X86_FEATURE_FXSR,5050 "m" (tsk->thread.i387.fxsave)5151 :"memory");5252- tsk->thread_info->status &= ~TS_USEDFPU;5252+ task_thread_info(tsk)->status &= ~TS_USEDFPU;5353}54545555#define __unlazy_fpu( tsk ) do { \5656- if ((tsk)->thread_info->status & TS_USEDFPU) \5656+ if (task_thread_info(tsk)->status & TS_USEDFPU) \5757 save_init_fpu( tsk ); \5858} while (0)59596060#define __clear_fpu( tsk ) \6161do { \6262- if ((tsk)->thread_info->status & TS_USEDFPU) { \6262+ if (task_thread_info(tsk)->status & TS_USEDFPU) { \6363 asm volatile("fnclex ; fwait"); \6464- (tsk)->thread_info->status &= ~TS_USEDFPU; \6464+ task_thread_info(tsk)->status &= ~TS_USEDFPU; \6565 stts(); \6666 } \6767} while (0)