Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sh3/sh3 pmap_steal_memory - a few more s/start/avai...
details: https://anonhg.NetBSD.org/src/rev/ce00db4f2457
branches: trunk
changeset: 351119:ce00db4f2457
user: uwe <uwe%NetBSD.org@localhost>
date: Thu Feb 02 21:35:29 2017 +0000
description:
pmap_steal_memory - a few more s/start/avail_start/ fixes for the
hotplug conversion.
diffstat:
sys/arch/sh3/sh3/pmap.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r edf419837952 -r ce00db4f2457 sys/arch/sh3/sh3/pmap.c
--- a/sys/arch/sh3/sh3/pmap.c Thu Feb 02 21:22:08 2017 +0000
+++ b/sys/arch/sh3/sh3/pmap.c Thu Feb 02 21:35:29 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.81 2017/02/02 21:17:40 uwe Exp $ */
+/* $NetBSD: pmap.c,v 1.82 2017/02/02 21:35:29 uwe Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.81 2017/02/02 21:17:40 uwe Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.82 2017/02/02 21:35:29 uwe Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -140,7 +140,8 @@
for (bank = uvm_physseg_get_first();
uvm_physseg_valid_p(bank);
bank = uvm_physseg_get_next(bank)) {
- if (npage <= uvm_physseg_get_end(bank) - uvm_physseg_get_start(bank))
+ if (npage <= uvm_physseg_get_avail_end(bank)
+ - uvm_physseg_get_avail_start(bank))
break;
}
Home |
Main Index |
Thread Index |
Old Index