Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc/sparc Use `pv_pool' in non-wait mode; for now...
details: https://anonhg.NetBSD.org/src/rev/38c9ceec43df
branches: trunk
changeset: 488161:38c9ceec43df
user: pk <pk%NetBSD.org@localhost>
date: Mon Jun 19 21:06:32 2000 +0000
description:
Use `pv_pool' in non-wait mode; for now, panic if memory is exhausted.
diffstat:
sys/arch/sparc/sparc/pmap.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diffs (31 lines):
diff -r 81a1a0cc2569 -r 38c9ceec43df sys/arch/sparc/sparc/pmap.c
--- a/sys/arch/sparc/sparc/pmap.c Mon Jun 19 20:53:26 2000 +0000
+++ b/sys/arch/sparc/sparc/pmap.c Mon Jun 19 21:06:32 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.168 2000/06/06 09:20:31 pk Exp $ */
+/* $NetBSD: pmap.c,v 1.169 2000/06/19 21:06:32 pk Exp $ */
/*
* Copyright (c) 1996
@@ -2199,7 +2199,9 @@
}
}
}
- npv = pool_get(&pv_pool, PR_WAITOK);
+ npv = pool_get(&pv_pool, PR_NOWAIT);
+ if (npv == NULL)
+ panic("pv_link: pv_pool exhausted");
npv->pv_next = pv->pv_next;
npv->pv_pmap = pm;
npv->pv_va = va;
@@ -2508,7 +2510,9 @@
}
}
}
- npv = pool_get(&pv_pool, PR_WAITOK);
+ npv = pool_get(&pv_pool, PR_NOWAIT);
+ if (npv == NULL)
+ panic("pv_link: pv_pool exhausted");
npv->pv_next = pv->pv_next;
npv->pv_pmap = pm;
npv->pv_va = va;
Home |
Main Index |
Thread Index |
Old Index