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 Use the correct page frame number to steal ...



details:   https://anonhg.NetBSD.org/src/rev/818b4d5830c6
branches:  trunk
changeset: 819955:818b4d5830c6
user:      cherry <cherry%NetBSD.org@localhost>
date:      Sat Dec 24 17:18:00 2016 +0000

description:
Use the correct page frame number to steal pages during boot.

Fixes the related sh3 kernel build breakage.

diffstat:

 sys/arch/sh3/sh3/pmap.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 2ad8f79d8f3c -r 818b4d5830c6 sys/arch/sh3/sh3/pmap.c
--- a/sys/arch/sh3/sh3/pmap.c   Sat Dec 24 17:11:31 2016 +0000
+++ b/sys/arch/sh3/sh3/pmap.c   Sat Dec 24 17:18:00 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.79 2016/12/23 07:15:28 cherry Exp $ */
+/*     $NetBSD: pmap.c,v 1.80 2016/12/24 17:18:00 cherry Exp $ */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.79 2016/12/23 07:15:28 cherry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.80 2016/12/24 17:18:00 cherry Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -148,7 +148,7 @@
 
        /* Steal pages */
        pa = ptoa(uvm_physseg_get_start(bank));
-       uvm_physseg_unplug(start, npage);
+       uvm_physseg_unplug(atop(pa), npage);
        va = SH3_PHYS_TO_P1SEG(pa);
        memset((void *)va, 0, size);
 



Home | Main Index | Thread Index | Old Index