summaryrefslogtreecommitdiffstats
path: root/sys/pc98
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-04-06 03:12:22 +0000
committerpeter <peter@FreeBSD.org>1999-04-06 03:12:22 +0000
commitb77f8b7ba69dd1424fab75410045d3feece33633 (patch)
tree1002f279b536a7b64638cfb035652b1f8077fb39 /sys/pc98
parentbc820937dce77a4f880ed362eeafe2a592c12b35 (diff)
downloadFreeBSD-src-b77f8b7ba69dd1424fab75410045d3feece33633.zip
FreeBSD-src-b77f8b7ba69dd1424fab75410045d3feece33633.tar.gz
Use PHOLD/PRELE() instead of P_PHSYIO.
Diffstat (limited to 'sys/pc98')
-rw-r--r--sys/pc98/cbus/fdc.c6
-rw-r--r--sys/pc98/pc98/fd.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/pc98/cbus/fdc.c b/sys/pc98/cbus/fdc.c
index 55ee953..c70dc56 100644
--- a/sys/pc98/cbus/fdc.c
+++ b/sys/pc98/cbus/fdc.c
@@ -47,7 +47,7 @@
* SUCH DAMAGE.
*
* from: @(#)fd.c 7.4 (Berkeley) 5/25/91
- * $Id: fd.c,v 1.51 1999/01/28 11:24:36 kato Exp $
+ * $Id: fd.c,v 1.52 1999/02/10 00:03:58 ken Exp $
*
*/
@@ -2549,7 +2549,7 @@ fdformat(dev, finfo, p)
/*
* keep the process from being swapped
*/
- p->p_flag |= P_PHYSIO;
+ PHOLD(p);
bzero((void *)bp, sizeof(struct buf));
bp->b_flags = B_BUSY | B_PHYS | B_FORMAT;
bp->b_proc = p;
@@ -2588,7 +2588,7 @@ fdformat(dev, finfo, p)
/*
* allow the process to be swapped
*/
- p->p_flag &= ~P_PHYSIO;
+ PRELE(p);
free(bp, M_TEMP);
return rv;
}
diff --git a/sys/pc98/pc98/fd.c b/sys/pc98/pc98/fd.c
index 55ee953..c70dc56 100644
--- a/sys/pc98/pc98/fd.c
+++ b/sys/pc98/pc98/fd.c
@@ -47,7 +47,7 @@
* SUCH DAMAGE.
*
* from: @(#)fd.c 7.4 (Berkeley) 5/25/91
- * $Id: fd.c,v 1.51 1999/01/28 11:24:36 kato Exp $
+ * $Id: fd.c,v 1.52 1999/02/10 00:03:58 ken Exp $
*
*/
@@ -2549,7 +2549,7 @@ fdformat(dev, finfo, p)
/*
* keep the process from being swapped
*/
- p->p_flag |= P_PHYSIO;
+ PHOLD(p);
bzero((void *)bp, sizeof(struct buf));
bp->b_flags = B_BUSY | B_PHYS | B_FORMAT;
bp->b_proc = p;
@@ -2588,7 +2588,7 @@ fdformat(dev, finfo, p)
/*
* allow the process to be swapped
*/
- p->p_flag &= ~P_PHYSIO;
+ PRELE(p);
free(bp, M_TEMP);
return rv;
}
OpenPOWER on IntegriCloud