diff --git a/sys/arch/i386/i386/process_machdep.c b/sys/arch/i386/i386/process_machdep.c index 6bf6a09ff859..1221e4a8428c 100644 --- a/sys/arch/i386/i386/process_machdep.c +++ b/sys/arch/i386/i386/process_machdep.c @@ -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 -__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) diff --git a/sys/arch/i386/i386/procfs_machdep.c b/sys/arch/i386/i386/procfs_machdep.c index 8a8d89026c7a..06fc2001e1ac 100644 --- a/sys/arch/i386/i386/procfs_machdep.c +++ b/sys/arch/i386/i386/procfs_machdep.c @@ -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 -__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 #include @@ -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 diff --git a/sys/arch/i386/include/ptrace.h b/sys/arch/i386/include/ptrace.h index 25eb3dc8fbcf..318ef52d4830 100644 --- a/sys/arch/i386/include/ptrace.h +++ b/sys/arch/i386/include/ptrace.h @@ -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 */