diff options
Diffstat (limited to 'arch/mips/kernel/irixelf.c')
-rw-r--r-- | arch/mips/kernel/irixelf.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/mips/kernel/irixelf.c b/arch/mips/kernel/irixelf.c index 7852c7cdf29e..290d8e3a664d 100644 --- a/arch/mips/kernel/irixelf.c +++ b/arch/mips/kernel/irixelf.c | |||
@@ -591,9 +591,9 @@ static void irix_map_prda_page(void) | |||
591 | return; | 591 | return; |
592 | 592 | ||
593 | pp = (struct prda *) v; | 593 | pp = (struct prda *) v; |
594 | pp->prda_sys.t_pid = current->pid; | 594 | pp->prda_sys.t_pid = task_pid_vnr(current); |
595 | pp->prda_sys.t_prid = read_c0_prid(); | 595 | pp->prda_sys.t_prid = read_c0_prid(); |
596 | pp->prda_sys.t_rpid = current->pid; | 596 | pp->prda_sys.t_rpid = task_pid_vnr(current); |
597 | 597 | ||
598 | /* We leave the rest set to zero */ | 598 | /* We leave the rest set to zero */ |
599 | } | 599 | } |
@@ -1170,11 +1170,11 @@ static int irix_core_dump(long signr, struct pt_regs *regs, struct file *file, u | |||
1170 | prstatus.pr_info.si_signo = prstatus.pr_cursig = signr; | 1170 | prstatus.pr_info.si_signo = prstatus.pr_cursig = signr; |
1171 | prstatus.pr_sigpend = current->pending.signal.sig[0]; | 1171 | prstatus.pr_sigpend = current->pending.signal.sig[0]; |
1172 | prstatus.pr_sighold = current->blocked.sig[0]; | 1172 | prstatus.pr_sighold = current->blocked.sig[0]; |
1173 | psinfo.pr_pid = prstatus.pr_pid = current->pid; | 1173 | psinfo.pr_pid = prstatus.pr_pid = task_pid_vnr(current); |
1174 | psinfo.pr_ppid = prstatus.pr_ppid = current->parent->pid; | 1174 | psinfo.pr_ppid = prstatus.pr_ppid = task_pid_vnr(current->parent); |
1175 | psinfo.pr_pgrp = prstatus.pr_pgrp = task_pgrp_nr(current); | 1175 | psinfo.pr_pgrp = prstatus.pr_pgrp = task_pgrp_vnr(current); |
1176 | psinfo.pr_sid = prstatus.pr_sid = task_session_nr(current); | 1176 | psinfo.pr_sid = prstatus.pr_sid = task_session_vnr(current); |
1177 | if (current->pid == current->tgid) { | 1177 | if (thread_group_leader(current)) { |
1178 | /* | 1178 | /* |
1179 | * This is the record for the group leader. Add in the | 1179 | * This is the record for the group leader. Add in the |
1180 | * cumulative times of previous dead threads. This total | 1180 | * cumulative times of previous dead threads. This total |