Module Name: src Committed By: uwe Date: Thu Feb 2 21:17:40 UTC 2017
Modified Files: src/sys/arch/sh3/sh3: pmap.c Log Message: pmap_steal_memory - s/start/avail_start/ to fix mistake in the hotplug conversion. The kernel now panics (can't unplug memory from the middle of a segment) instead of triggering a reset. To generate a diff of this commit: cvs rdiff -u -r1.80 -r1.81 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.80 src/sys/arch/sh3/sh3/pmap.c:1.81 --- src/sys/arch/sh3/sh3/pmap.c:1.80 Sat Dec 24 17:18:00 2016 +++ src/sys/arch/sh3/sh3/pmap.c Thu Feb 2 21:17:40 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: pmap.c,v 1.80 2016/12/24 17:18:00 cherry Exp $ */ +/* $NetBSD: pmap.c,v 1.81 2017/02/02 21:17:40 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.80 2016/12/24 17:18:00 cherry Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.81 2017/02/02 21:17:40 uwe Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -147,7 +147,7 @@ pmap_steal_memory(vsize_t size, vaddr_t KDASSERT(uvm_physseg_valid_p(bank)); /* Steal pages */ - pa = ptoa(uvm_physseg_get_start(bank)); + pa = ptoa(uvm_physseg_get_avail_start(bank)); uvm_physseg_unplug(atop(pa), npage); va = SH3_PHYS_TO_P1SEG(pa); memset((void *)va, 0, size);