diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2005-12-11 21:30:32 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2005-12-11 21:30:32 +0000 |
commit | a342f962baf22ac9db5f3bd2a04ed48f1e2a2b74 (patch) | |
tree | d3643230668304deebb48d98ba0541e2eb192241 /sys/arch/alpha | |
parent | bdbdd1c8cc21dca99b15a748a74b14759192348c (diff) |
Replace procfs_domem() with a similar interface, process_domem(), which lives
out of procfs and gets a ptrace request PT_{READ,WRITE}_{I,D} as argument;
also procfs_checkioperm() becomes process_checkioperm().
From art@ some time ago; ok kettenis@ pedro@
Diffstat (limited to 'sys/arch/alpha')
-rw-r--r-- | sys/arch/alpha/alpha/process_machdep.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/alpha/alpha/process_machdep.c b/sys/arch/alpha/alpha/process_machdep.c index a99c685acfb..4d2d5d920ee 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.9 2002/04/28 20:55:14 pvalchev Exp $ */ +/* $OpenBSD: process_machdep.c,v 1.10 2005/12/11 21:30:27 miod Exp $ */ /* $NetBSD: process_machdep.c,v 1.7 1996/07/11 20:14:21 cgd Exp $ */ /*- @@ -185,7 +185,7 @@ ptrace_read_int(struct proc *p, vaddr_t addr, u_int32_t *v) uio.uio_segflg = UIO_SYSSPACE; uio.uio_rw = UIO_READ; uio.uio_procp = p; - return procfs_domem(curproc, p, NULL, &uio); + return process_domem(curproc, p, &uio, PT_READ_I); } int @@ -203,7 +203,7 @@ ptrace_write_int(struct proc *p, vaddr_t addr, u_int32_t v) uio.uio_segflg = UIO_SYSSPACE; uio.uio_rw = UIO_WRITE; uio.uio_procp = p; - return procfs_domem(curproc, p, NULL, &uio); + return process_domem(curproc, p, &uio, PT_WRITE_I); } u_int64_t |