diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2016-10-19 08:31:34 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2016-10-19 08:31:34 +0000 |
commit | 8b1d68782954a20a07fae61156cf0385a4c058df (patch) | |
tree | 2ad803c3ae008a7408c7f6fda66856c6141bd8c7 /sys/arch/hppa | |
parent | 3479986a00a06d19b0e074a8b2921e11c42ed785 (diff) |
Change process_{domem,auxv_offset}() to take a process instead of a proc.
Make process_auxv_offset() take and release a reference of the vmspace like
process_domem() does.
ok kettenis@
Diffstat (limited to 'sys/arch/hppa')
-rw-r--r-- | sys/arch/hppa/hppa/trap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/hppa/hppa/trap.c b/sys/arch/hppa/hppa/trap.c index 04928eea5e7..1182d837fe4 100644 --- a/sys/arch/hppa/hppa/trap.c +++ b/sys/arch/hppa/hppa/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.140 2016/10/08 05:49:08 guenther Exp $ */ +/* $OpenBSD: trap.c,v 1.141 2016/10/19 08:31:32 guenther Exp $ */ /* * Copyright (c) 1998-2004 Michael Shalayeff @@ -690,7 +690,7 @@ ss_get_value(struct proc *p, vaddr_t addr, u_int *value) uio.uio_segflg = UIO_SYSSPACE; uio.uio_rw = UIO_READ; uio.uio_procp = curproc; - return (process_domem(curproc, p, &uio, PT_READ_I)); + return (process_domem(curproc, p->p_p, &uio, PT_READ_I)); } int @@ -708,7 +708,7 @@ ss_put_value(struct proc *p, vaddr_t addr, u_int value) uio.uio_segflg = UIO_SYSSPACE; uio.uio_rw = UIO_WRITE; uio.uio_procp = curproc; - return (process_domem(curproc, p, &uio, PT_WRITE_I)); + return (process_domem(curproc, p->p_p, &uio, PT_WRITE_I)); } void |