summaryrefslogtreecommitdiff
path: root/sys/arch/alpha
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2016-10-19 08:23:38 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2016-10-19 08:23:38 +0000
commit149943d4909712305e1a2fddd6e67c2f033a4f3c (patch)
tree5084e96be1ff0866a4bc06361241022a0d57924a /sys/arch/alpha
parent2bee672b82a5e12f843891bf6b840170e2ef8a3b (diff)
The first argument to process_domem() and its uio_procp should be curproc
ok kettenis@
Diffstat (limited to 'sys/arch/alpha')
-rw-r--r--sys/arch/alpha/alpha/process_machdep.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/arch/alpha/alpha/process_machdep.c b/sys/arch/alpha/alpha/process_machdep.c
index 6fe711eb74a..86d3874dd05 100644
--- a/sys/arch/alpha/alpha/process_machdep.c
+++ b/sys/arch/alpha/alpha/process_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: process_machdep.c,v 1.12 2014/01/26 17:40:09 miod Exp $ */
+/* $OpenBSD: process_machdep.c,v 1.13 2016/10/19 08:23:37 guenther Exp $ */
/* $NetBSD: process_machdep.c,v 1.7 1996/07/11 20:14:21 cgd Exp $ */
/*-
@@ -180,8 +180,8 @@ ptrace_read_int(struct proc *p, vaddr_t addr, u_int32_t *v)
uio.uio_resid = sizeof(u_int32_t);
uio.uio_segflg = UIO_SYSSPACE;
uio.uio_rw = UIO_READ;
- uio.uio_procp = p;
- return process_domem(curproc, p, &uio, PT_READ_I);
+ uio.uio_procp = curproc;
+ return process_domem(curproc, p->p_p, &uio, PT_READ_I);
}
int
@@ -198,8 +198,8 @@ ptrace_write_int(struct proc *p, vaddr_t addr, u_int32_t v)
uio.uio_resid = sizeof(u_int32_t);
uio.uio_segflg = UIO_SYSSPACE;
uio.uio_rw = UIO_WRITE;
- uio.uio_procp = p;
- return process_domem(curproc, p, &uio, PT_WRITE_I);
+ uio.uio_procp = curproc;
+ return process_domem(curproc, p->p_p, &uio, PT_WRITE_I);
}
u_int64_t