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 - s/start/avail_start/ to...
details: https://anonhg.NetBSD.org/src/rev/151baaa9891d
branches: trunk
changeset: 351117:151baaa9891d
user: uwe <uwe%NetBSD.org@localhost>
date: Thu Feb 02 21:17:40 2017 +0000
description:
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.
diffstat:
sys/arch/sh3/sh3/pmap.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 5ea8b1ad708d -r 151baaa9891d sys/arch/sh3/sh3/pmap.c
--- a/sys/arch/sh3/sh3/pmap.c Thu Feb 02 21:11:25 2017 +0000
+++ b/sys/arch/sh3/sh3/pmap.c Thu Feb 02 21:17:40 2017 +0000
@@ -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 @@
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);
Home |
Main Index |
Thread Index |
Old Index