Mirror cleanup wrt. procfs-centric naming made to the MI ptrace code.
This commit is contained in:
parent
f1f51aa2b8
commit
b6950c9729
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: process_machdep.c,v 1.42 2002/05/09 15:44:46 thorpej Exp $ */
|
||||
/* $NetBSD: process_machdep.c,v 1.43 2002/05/09 16:28:11 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998, 2000, 2001 The NetBSD Foundation, Inc.
|
||||
@ -59,7 +59,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: process_machdep.c,v 1.42 2002/05/09 15:44:46 thorpej Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: process_machdep.c,v 1.43 2002/05/09 16:28:11 thorpej Exp $");
|
||||
|
||||
#include "opt_vm86.h"
|
||||
#include "npx.h"
|
||||
@ -411,10 +411,8 @@ process_set_pc(p, addr)
|
||||
}
|
||||
|
||||
#ifdef __HAVE_PTRACE_MACHDEP
|
||||
int
|
||||
process_machdep_read_xmmregs(p, regs)
|
||||
struct proc *p;
|
||||
struct xmmregs *regs;
|
||||
static int
|
||||
process_machdep_read_xmmregs(struct proc *p, struct xmmregs *regs)
|
||||
{
|
||||
union savefpu *frame = process_fpframe(p);
|
||||
|
||||
@ -451,10 +449,8 @@ process_machdep_read_xmmregs(p, regs)
|
||||
return (0);
|
||||
}
|
||||
|
||||
int
|
||||
process_machdep_write_xmmregs(p, regs)
|
||||
struct proc *p;
|
||||
struct xmmregs *regs;
|
||||
static int
|
||||
process_machdep_write_xmmregs(struct proc *p, struct xmmregs *regs)
|
||||
{
|
||||
union savefpu *frame = process_fpframe(p);
|
||||
|
||||
@ -517,15 +513,13 @@ ptrace_machdep_dorequest(p, t, req, addr, data)
|
||||
}
|
||||
|
||||
/*
|
||||
* The following functions have procfs-centric names, but are in
|
||||
* fact used by both ptrace(2) and procfs.
|
||||
* The following functions are used by both ptrace(2) and procfs.
|
||||
*/
|
||||
|
||||
int
|
||||
procfs_machdep_doxmmregs(curp, p, pfs, uio)
|
||||
process_machdep_doxmmregs(curp, p, uio)
|
||||
struct proc *curp; /* tracer */
|
||||
struct proc *p; /* traced */
|
||||
struct pfsnode *pfs;
|
||||
struct uio *uio;
|
||||
{
|
||||
int error;
|
||||
@ -566,9 +560,8 @@ procfs_machdep_doxmmregs(curp, p, pfs, uio)
|
||||
}
|
||||
|
||||
int
|
||||
procfs_machdep_validxmmregs(p, mp)
|
||||
process_machdep_validxmmregs(p)
|
||||
struct proc *p;
|
||||
struct mount *mp;
|
||||
{
|
||||
|
||||
if (p->p_flag & P_SYSTEM)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: procfs_machdep.c,v 1.8 2001/12/05 00:58:06 thorpej Exp $ */
|
||||
/* $NetBSD: procfs_machdep.c,v 1.9 2002/05/09 16:28:11 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2001 Wasabi Systems, Inc.
|
||||
@ -37,7 +37,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: procfs_machdep.c,v 1.8 2001/12/05 00:58:06 thorpej Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: procfs_machdep.c,v 1.9 2002/05/09 16:28:11 thorpej Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -208,4 +208,19 @@ procfs_machdep_getattr(struct vnode *vp, struct vattr *vap, struct proc *procp)
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
||||
int
|
||||
procfs_machdep_doxmmregs(struct proc *curp, struct proc *p,
|
||||
struct pfsnode *pfs, struct uio *uio)
|
||||
{
|
||||
|
||||
return (process_machdep_doxmmregs(curp, p, uio));
|
||||
}
|
||||
|
||||
int
|
||||
procfs_machdep_validxmmregs(struct proc *p, struct mount *mp)
|
||||
{
|
||||
|
||||
return (process_machdep_validxmmregs(p));
|
||||
}
|
||||
#endif
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ptrace.h,v 1.7 2001/12/05 00:58:06 thorpej Exp $ */
|
||||
/* $NetBSD: ptrace.h,v 1.8 2002/05/09 16:28:12 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2001 Wasabi Systems, Inc.
|
||||
@ -124,17 +124,16 @@
|
||||
|
||||
struct xmmregs;
|
||||
|
||||
/* Functions used by both ptrace(2) and procfs. */
|
||||
int process_machdep_doxmmregs(struct proc *, struct proc *, struct uio *);
|
||||
int process_machdep_validxmmregs(struct proc *);
|
||||
|
||||
/* Functions used by procfs. */
|
||||
struct mount;
|
||||
struct pfsnode;
|
||||
|
||||
/* Functions used by both ptrace(2) and procfs. */
|
||||
int process_machdep_read_xmmregs(struct proc *, struct xmmregs *);
|
||||
int process_machdep_write_xmmregs(struct proc *, struct xmmregs *);
|
||||
|
||||
int procfs_machdep_validxmmregs(struct proc *, struct mount *);
|
||||
|
||||
int procfs_machdep_doxmmregs(struct proc *, struct proc *,
|
||||
struct pfsnode *, struct uio *);
|
||||
int procfs_machdep_validxmmregs(struct proc *, struct mount *);
|
||||
|
||||
#endif /* _KERNEL */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user