diff options
Diffstat (limited to 'sys/fs/procfs/procfs_fpregs.c')
-rw-r--r-- | sys/fs/procfs/procfs_fpregs.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/fs/procfs/procfs_fpregs.c b/sys/fs/procfs/procfs_fpregs.c index f1ba6f6..8501d9a 100644 --- a/sys/fs/procfs/procfs_fpregs.c +++ b/sys/fs/procfs/procfs_fpregs.c @@ -1,4 +1,4 @@ -/* +/*- * Copyright (c) 1993 Jan-Simon Pendry * Copyright (c) 1993 * The Regents of the University of California. All rights reserved. @@ -37,6 +37,7 @@ * @(#)procfs_fpregs.c 8.2 (Berkeley) 6/15/94 * * From: + * $Id: procfs_regs.c,v 3.2 1993/12/15 09:40:17 jsp Exp $ * $FreeBSD$ */ @@ -62,7 +63,7 @@ procfs_doprocfpregs(PFS_FILL_ARGS) int kl; if (p_candebug(td->td_proc, p)) - return EPERM; + return (EPERM); kl = sizeof(r); kv = (char *) &r; @@ -72,10 +73,10 @@ procfs_doprocfpregs(PFS_FILL_ARGS) kl = uio->uio_resid; PHOLD(p); - if (kl < 0) error = EINVAL; else + /* XXXKSE: */ error = proc_read_fpregs(FIRST_THREAD_IN_PROC(p), &r); if (error == 0) error = uiomove(kv, kl, uio); @@ -83,6 +84,7 @@ procfs_doprocfpregs(PFS_FILL_ARGS) if (p->p_stat != SSTOP) error = EBUSY; else + /* XXXKSE: */ error = proc_write_fpregs(FIRST_THREAD_IN_PROC(p), &r); } PRELE(p); |