Lines Matching refs:task
48 static inline int get_stack_long(struct task_struct *task, int offset) in get_stack_long() argument
52 stack = (unsigned char *)(task->thread.kregs); in get_stack_long()
58 get_fpu_long(struct task_struct *task, unsigned long addr) in get_fpu_long() argument
62 regs = (struct pt_regs*)((unsigned char *)task + THREAD_SIZE) - 1; in get_fpu_long()
64 if (!task->used_math) { in get_fpu_long()
73 if (last_task_used_math == task) { in get_fpu_long()
75 fpsave(&task->thread.fpu.hard); in get_fpu_long()
81 tmp = ((long *)&task->thread.fpu)[addr / sizeof(unsigned long)]; in get_fpu_long()
88 static inline int put_stack_long(struct task_struct *task, int offset, in put_stack_long() argument
93 stack = (unsigned char *)(task->thread.kregs); in put_stack_long()
100 put_fpu_long(struct task_struct *task, unsigned long addr, unsigned long data) in put_fpu_long() argument
104 regs = (struct pt_regs*)((unsigned char *)task + THREAD_SIZE) - 1; in put_fpu_long()
106 if (!task->used_math) { in put_fpu_long()
107 fpinit(&task->thread.fpu.hard); in put_fpu_long()
108 task->used_math = 1; in put_fpu_long()
109 } else if (last_task_used_math == task) { in put_fpu_long()
111 fpsave(&task->thread.fpu.hard); in put_fpu_long()
117 ((long *)&task->thread.fpu)[addr / sizeof(unsigned long)] = data; in put_fpu_long()