diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2006-01-12 04:05:56 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-12 12:08:55 -0500 |
commit | e7c1b32fd354c34c4dceb1736a485bc5d91f7c43 (patch) | |
tree | 165e0b0f4cf5cc3e393e66fedf4e81d90cf7297c /arch/arm/kernel/ptrace.c | |
parent | 68f8b1f8f113fcbc8d8e835f174b97cdaf96af20 (diff) |
[PATCH] arm: task_thread_info()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/arm/kernel/ptrace.c')
-rw-r--r-- | arch/arm/kernel/ptrace.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/arm/kernel/ptrace.c b/arch/arm/kernel/ptrace.c index 2b84f78d7b0f..f003062c9457 100644 --- a/arch/arm/kernel/ptrace.c +++ b/arch/arm/kernel/ptrace.c | |||
@@ -604,7 +604,7 @@ static int ptrace_setregs(struct task_struct *tsk, void __user *uregs) | |||
604 | */ | 604 | */ |
605 | static int ptrace_getfpregs(struct task_struct *tsk, void __user *ufp) | 605 | static int ptrace_getfpregs(struct task_struct *tsk, void __user *ufp) |
606 | { | 606 | { |
607 | return copy_to_user(ufp, &tsk->thread_info->fpstate, | 607 | return copy_to_user(ufp, &task_thread_info(tsk)->fpstate, |
608 | sizeof(struct user_fp)) ? -EFAULT : 0; | 608 | sizeof(struct user_fp)) ? -EFAULT : 0; |
609 | } | 609 | } |
610 | 610 | ||
@@ -613,7 +613,7 @@ static int ptrace_getfpregs(struct task_struct *tsk, void __user *ufp) | |||
613 | */ | 613 | */ |
614 | static int ptrace_setfpregs(struct task_struct *tsk, void __user *ufp) | 614 | static int ptrace_setfpregs(struct task_struct *tsk, void __user *ufp) |
615 | { | 615 | { |
616 | struct thread_info *thread = tsk->thread_info; | 616 | struct thread_info *thread = task_thread_info(tsk); |
617 | thread->used_cp[1] = thread->used_cp[2] = 1; | 617 | thread->used_cp[1] = thread->used_cp[2] = 1; |
618 | return copy_from_user(&thread->fpstate, ufp, | 618 | return copy_from_user(&thread->fpstate, ufp, |
619 | sizeof(struct user_fp)) ? -EFAULT : 0; | 619 | sizeof(struct user_fp)) ? -EFAULT : 0; |
@@ -626,7 +626,7 @@ static int ptrace_setfpregs(struct task_struct *tsk, void __user *ufp) | |||
626 | */ | 626 | */ |
627 | static int ptrace_getwmmxregs(struct task_struct *tsk, void __user *ufp) | 627 | static int ptrace_getwmmxregs(struct task_struct *tsk, void __user *ufp) |
628 | { | 628 | { |
629 | struct thread_info *thread = tsk->thread_info; | 629 | struct thread_info *thread = task_thread_info(tsk); |
630 | void *ptr = &thread->fpstate; | 630 | void *ptr = &thread->fpstate; |
631 | 631 | ||
632 | if (!test_ti_thread_flag(thread, TIF_USING_IWMMXT)) | 632 | if (!test_ti_thread_flag(thread, TIF_USING_IWMMXT)) |
@@ -643,7 +643,7 @@ static int ptrace_getwmmxregs(struct task_struct *tsk, void __user *ufp) | |||
643 | */ | 643 | */ |
644 | static int ptrace_setwmmxregs(struct task_struct *tsk, void __user *ufp) | 644 | static int ptrace_setwmmxregs(struct task_struct *tsk, void __user *ufp) |
645 | { | 645 | { |
646 | struct thread_info *thread = tsk->thread_info; | 646 | struct thread_info *thread = task_thread_info(tsk); |
647 | void *ptr = &thread->fpstate; | 647 | void *ptr = &thread->fpstate; |
648 | 648 | ||
649 | if (!test_ti_thread_flag(thread, TIF_USING_IWMMXT)) | 649 | if (!test_ti_thread_flag(thread, TIF_USING_IWMMXT)) |
@@ -779,7 +779,7 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data) | |||
779 | #endif | 779 | #endif |
780 | 780 | ||
781 | case PTRACE_GET_THREAD_AREA: | 781 | case PTRACE_GET_THREAD_AREA: |
782 | ret = put_user(child->thread_info->tp_value, | 782 | ret = put_user(task_thread_info(child)->tp_value, |
783 | (unsigned long __user *) data); | 783 | (unsigned long __user *) data); |
784 | break; | 784 | break; |
785 | 785 | ||