aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJohn Dyson <dyson@FreeBSD.org>1996-10-12 21:37:59 +0000
committerJohn Dyson <dyson@FreeBSD.org>1996-10-12 21:37:59 +0000
commitbdef8bf0927872220f1533de36453bc60bdff4b1 (patch)
treeaa88b5f65210e2e70229331ac312d3efa41eeea9 /sys
parent9d3fbbb5f4bb727f86ea497435cbc6d70539c33f (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/subr_rlist.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/subr_rlist.c b/sys/kern/subr_rlist.c
index 4c3aba07f690..1ac27fbed30a 100644
--- a/sys/kern/subr_rlist.c
+++ b/sys/kern/subr_rlist.c
@@ -54,7 +54,7 @@
* functioning of this software, nor does the author assume any responsibility
* for damages incurred with its use.
*
- * $Id: subr_rlist.c,v 1.17 1996/03/03 21:10:52 dyson Exp $
+ * $Id: subr_rlist.c,v 1.18 1996/10/12 21:35:25 dyson Exp $
*/
#include <sys/param.h>
@@ -83,7 +83,7 @@ rlist_malloc()
struct rlist *rl;
int i;
while( rlist_count < RLIST_MIN) {
- int s = splvm();
+ int s = splhigh();
rl = (struct rlist *)kmem_alloc(kernel_map, PAGE_SIZE);
splx(s);
if( !rl)
@@ -122,7 +122,7 @@ rlist_free(rlh, start, end)
struct rlist *prev_rlp = NULL, *cur_rlp = *rlp, *next_rlp = NULL;
int s;
- s = splvm();
+ s = splhigh();
while (rlh->rlh_lock & RLH_LOCKED) {
rlh->rlh_lock |= RLH_DESIRED;
tsleep(rlh, PSWP, "rlistf", 0);
@@ -241,7 +241,7 @@ rlist_alloc (rlh, size, loc)
int s;
register struct rlist *olp = 0;
- s = splvm();
+ s = splhigh();
while (rlh->rlh_lock & RLH_LOCKED) {
rlh->rlh_lock |= RLH_DESIRED;
tsleep(rlh, PSWP, "rlistf", 0);