Module Name:    src
Committed By:   cherry
Date:           Sat Dec 24 17:18:00 UTC 2016

Modified Files:
        src/sys/arch/sh3/sh3: pmap.c

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

Fixes the related sh3 kernel build breakage.


To generate a diff of this commit:
cvs rdiff -u -r1.79 -r1.80 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.79 src/sys/arch/sh3/sh3/pmap.c:1.80
--- src/sys/arch/sh3/sh3/pmap.c:1.79	Fri Dec 23 07:15:28 2016
+++ src/sys/arch/sh3/sh3/pmap.c	Sat Dec 24 17:18:00 2016
@@ -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 @@ pmap_steal_memory(vsize_t size, vaddr_t 
 
 	/* 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);
 

Reply via email to