Module Name: src
Committed By: uwe
Date: Thu Feb 2 21:35:29 UTC 2017
Modified Files:
src/sys/arch/sh3/sh3: pmap.c
Log Message:
pmap_steal_memory - a few more s/start/avail_start/ fixes for the
hotplug conversion.
To generate a diff of this commit:
cvs rdiff -u -r1.81 -r1.82 src/sys/arch/sh3/sh3/pmap.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/sh3/sh3/pmap.c
diff -u src/sys/arch/sh3/sh3/pmap.c:1.81 src/sys/arch/sh3/sh3/pmap.c:1.82
--- src/sys/arch/sh3/sh3/pmap.c:1.81 Thu Feb 2 21:17:40 2017
+++ src/sys/arch/sh3/sh3/pmap.c Thu Feb 2 21:35:29 2017
@@ -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 @@ pmap_steal_memory(vsize_t size, vaddr_t
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;
}