summaryrefslogtreecommitdiff
path: root/sys/arch/mips64
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2017-01-21 05:42:05 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2017-01-21 05:42:05 +0000
commit9a302bd2ce6b791c5c6ebe5666355ec437ac1d03 (patch)
tree9195deecdf0ac1af03e69b4df6433353d6454326 /sys/arch/mips64
parent6c1f34eaf54d82d737e660ad764b624602f89481 (diff)
p_comm is the process's command and isn't per thread, so move it from
struct proc to struct process. ok deraadt@ kettenis@
Diffstat (limited to 'sys/arch/mips64')
-rw-r--r--sys/arch/mips64/mips64/fp_emulate.c6
-rw-r--r--sys/arch/mips64/mips64/pmap.c6
-rw-r--r--sys/arch/mips64/mips64/trap.c10
3 files changed, 11 insertions, 11 deletions
diff --git a/sys/arch/mips64/mips64/fp_emulate.c b/sys/arch/mips64/mips64/fp_emulate.c
index a7e0d213c8e..50251be956f 100644
--- a/sys/arch/mips64/mips64/fp_emulate.c
+++ b/sys/arch/mips64/mips64/fp_emulate.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fp_emulate.c,v 1.14 2016/03/06 19:42:27 mpi Exp $ */
+/* $OpenBSD: fp_emulate.c,v 1.15 2017/01/21 05:42:03 guenther Exp $ */
/*
* Copyright (c) 2010 Miodrag Vallat.
@@ -201,11 +201,11 @@ MipsFPTrap(struct trapframe *tf)
#ifdef DEBUG
#ifdef DDB
printf("%s: unimplemented FPU completion, fsr 0x%08x\n0x%lx: ",
- p->p_comm, fsr, pc);
+ p->p_p->ps_comm, fsr, pc);
dbmd_print_insn(insn, pc, printf);
#else
printf("%s: unimplemented FPU completion, insn 0x%08x fsr 0x%08x\n",
- p->p_comm, insn, fsr);
+ p->p_p->ps_comm, insn, fsr);
#endif
#endif
diff --git a/sys/arch/mips64/mips64/pmap.c b/sys/arch/mips64/mips64/pmap.c
index 89692551ffd..6b82703f250 100644
--- a/sys/arch/mips64/mips64/pmap.c
+++ b/sys/arch/mips64/mips64/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.100 2017/01/02 18:19:34 visa Exp $ */
+/* $OpenBSD: pmap.c,v 1.101 2017/01/21 05:42:03 guenther Exp $ */
/*
* Copyright (c) 2001-2004 Opsycon AB (www.opsycon.se / www.opsycon.com)
@@ -1822,13 +1822,13 @@ pmap_alloc_tlbpid(struct proc *p)
if (curproc) {
DPRINTF(PDB_FOLLOW|PDB_TLBPID,
("pmap_alloc_tlbpid: curproc %d '%s' ",
- curproc->p_p->ps_pid, curproc->p_comm));
+ curproc->p_p->ps_pid, curproc->p_p->ps_comm));
} else {
DPRINTF(PDB_FOLLOW|PDB_TLBPID,
("pmap_alloc_tlbpid: curproc <none> "));
}
DPRINTF(PDB_FOLLOW|PDB_TLBPID, ("segtab %p tlbpid %u pid %d '%s'\n",
- pmap->pm_segtab, id, p->p_p->ps_pid, p->p_comm));
+ pmap->pm_segtab, id, p->p_p->ps_pid, p->p_p->ps_comm));
return (id);
}
diff --git a/sys/arch/mips64/mips64/trap.c b/sys/arch/mips64/mips64/trap.c
index 7539154a7a1..817686c30e1 100644
--- a/sys/arch/mips64/mips64/trap.c
+++ b/sys/arch/mips64/mips64/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.121 2016/10/19 08:28:20 guenther Exp $ */
+/* $OpenBSD: trap.c,v 1.122 2017/01/21 05:42:03 guenther Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -614,7 +614,7 @@ fault_common_no_miss:
#ifdef DEBUG
printf("trap: %s (%d): breakpoint at %p "
"(insn %08x)\n",
- p->p_comm, p->p_p->ps_pid,
+ p->p_p->ps_comm, p->p_p->ps_pid,
(void *)p->p_md.md_ss_addr,
p->p_md.md_ss_instr);
#endif
@@ -1075,7 +1075,7 @@ process_sstep(struct proc *p, int sstep)
if (rc != 0)
printf("WARNING: %s (%d): can't restore "
"instruction at %p: %08x\n",
- p->p_comm, p->p_p->ps_pid,
+ p->p_p->ps_comm, p->p_p->ps_pid,
(void *)p->p_md.md_ss_addr,
p->p_md.md_ss_instr);
#endif
@@ -1101,7 +1101,7 @@ process_sstep(struct proc *p, int sstep)
if (p->p_md.md_ss_addr != 0) {
printf("WARNING: %s (%d): breakpoint request "
"at %p, already set at %p\n",
- p->p_comm, p->p_p->ps_pid, (void *)va,
+ p->p_p->ps_comm, p->p_p->ps_pid, (void *)va,
(void *)p->p_md.md_ss_addr);
return EFAULT;
}
@@ -1121,7 +1121,7 @@ process_sstep(struct proc *p, int sstep)
#ifdef DEBUG
printf("%s (%d): breakpoint set at %p: %08x (pc %p %08x)\n",
- p->p_comm, p->p_p->ps_pid, (void *)p->p_md.md_ss_addr,
+ p->p_p->ps_comm, p->p_p->ps_pid, (void *)p->p_md.md_ss_addr,
p->p_md.md_ss_instr, (void *)locr0->pc, curinstr);
#endif
return 0;