mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
[PATCH] arm26: task_thread_info()
Signed-off-by: Al Viro <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
32d39a9355
commit
697102cda5
4 changed files with 6 additions and 6 deletions
|
|
@ -277,7 +277,7 @@ int
|
|||
copy_thread(int nr, unsigned long clone_flags, unsigned long stack_start,
|
||||
unsigned long unused, struct task_struct *p, struct pt_regs *regs)
|
||||
{
|
||||
struct thread_info *thread = p->thread_info;
|
||||
struct thread_info *thread = task_thread_info(p);
|
||||
struct pt_regs *childregs;
|
||||
|
||||
childregs = __get_user_regs(thread);
|
||||
|
|
|
|||
|
|
@ -532,7 +532,7 @@ static int ptrace_setregs(struct task_struct *tsk, void *uregs)
|
|||
*/
|
||||
static int ptrace_getfpregs(struct task_struct *tsk, void *ufp)
|
||||
{
|
||||
return copy_to_user(ufp, &tsk->thread_info->fpstate,
|
||||
return copy_to_user(ufp, &task_thread_info(tsk)->fpstate,
|
||||
sizeof(struct user_fp)) ? -EFAULT : 0;
|
||||
}
|
||||
|
||||
|
|
@ -542,7 +542,7 @@ static int ptrace_getfpregs(struct task_struct *tsk, void *ufp)
|
|||
static int ptrace_setfpregs(struct task_struct *tsk, void *ufp)
|
||||
{
|
||||
set_stopped_child_used_math(tsk);
|
||||
return copy_from_user(&tsk->thread_info->fpstate, ufp,
|
||||
return copy_from_user(&task_threas_info(tsk)->fpstate, ufp,
|
||||
sizeof(struct user_fp)) ? -EFAULT : 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue