diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2001-03-07 02:07:56 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2001-03-07 02:07:56 +0000 |
| commit | 0087374731dd4f48d6d51977cac31a370d002311 (patch) | |
| tree | 67628119aa57afdde54d5e67d519461a87f1961d /sys/miscfs | |
| parent | c4a21abf00b2de134b725620badc818a96ee9d50 (diff) | |
Notes
Diffstat (limited to 'sys/miscfs')
| -rw-r--r-- | sys/miscfs/procfs/procfs_dbregs.c | 7 | ||||
| -rw-r--r-- | sys/miscfs/procfs/procfs_fpregs.c | 7 | ||||
| -rw-r--r-- | sys/miscfs/procfs/procfs_regs.c | 7 |
3 files changed, 18 insertions, 3 deletions
diff --git a/sys/miscfs/procfs/procfs_dbregs.c b/sys/miscfs/procfs/procfs_dbregs.c index c7ad13014728..6d35da0fefda 100644 --- a/sys/miscfs/procfs/procfs_dbregs.c +++ b/sys/miscfs/procfs/procfs_dbregs.c @@ -96,5 +96,10 @@ int procfs_validdbregs(p) struct proc *p; { - return ((p->p_flag & P_SYSTEM) == 0); + int valid; + + PROC_LOCK(p); + valid = (p->p_flag & P_SYSTEM) == 0; + PROC_UNLOCK(p); + return (valid); } diff --git a/sys/miscfs/procfs/procfs_fpregs.c b/sys/miscfs/procfs/procfs_fpregs.c index 69dd527f6e8f..493939ca5457 100644 --- a/sys/miscfs/procfs/procfs_fpregs.c +++ b/sys/miscfs/procfs/procfs_fpregs.c @@ -93,5 +93,10 @@ int procfs_validfpregs(p) struct proc *p; { - return ((p->p_flag & P_SYSTEM) == 0); + int valid; + + PROC_LOCK(p); + valid = (p->p_flag & P_SYSTEM) == 0; + PROC_UNLOCK(p); + return (valid); } diff --git a/sys/miscfs/procfs/procfs_regs.c b/sys/miscfs/procfs/procfs_regs.c index c2b6d4b654fb..d1dd0bc19f89 100644 --- a/sys/miscfs/procfs/procfs_regs.c +++ b/sys/miscfs/procfs/procfs_regs.c @@ -94,5 +94,10 @@ int procfs_validregs(p) struct proc *p; { - return ((p->p_flag & P_SYSTEM) == 0); + int valid; + + PROC_LOCK(p); + valid = (p->p_flag & P_SYSTEM) == 0; + PROC_UNLOCK(p); + return (valid); } |
