summaryrefslogtreecommitdiffstats
path: root/sys/fs/procfs/procfs_fpregs.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/fs/procfs/procfs_fpregs.c')
-rw-r--r--sys/fs/procfs/procfs_fpregs.c20
1 files changed, 4 insertions, 16 deletions
diff --git a/sys/fs/procfs/procfs_fpregs.c b/sys/fs/procfs/procfs_fpregs.c
index 99ed221..23be296 100644
--- a/sys/fs/procfs/procfs_fpregs.c
+++ b/sys/fs/procfs/procfs_fpregs.c
@@ -46,27 +46,22 @@
#include <sys/mutex.h>
#include <sys/proc.h>
#include <sys/ptrace.h>
-#include <sys/vnode.h>
+#include <sys/uio.h>
#include <machine/reg.h>
+#include <fs/pseudofs/pseudofs.h>
#include <fs/procfs/procfs.h>
-#include <vm/vm.h>
-
int
-procfs_dofpregs(curp, p, pfs, uio)
- struct proc *curp;
- struct proc *p;
- struct pfsnode *pfs;
- struct uio *uio;
+procfs_doprocfpregs(PFS_FILL_ARGS)
{
int error;
struct fpreg r;
char *kv;
int kl;
- if (p_candebug(curp, p))
+ if (p_candebug(td->td_proc, p))
return EPERM;
kl = sizeof(r);
kv = (char *) &r;
@@ -95,10 +90,3 @@ procfs_dofpregs(curp, p, pfs, uio)
uio->uio_offset = 0;
return (error);
}
-
-int
-procfs_validfpregs(struct thread *td)
-{
-
- return (( td->td_proc->p_flag & P_SYSTEM) == 0);
-}
OpenPOWER on IntegriCloud