Module Name:    src
Committed By:   uwe
Date:           Thu Feb  2 21:11:25 UTC 2017

Modified Files:
        src/sys/arch/landisk/landisk: machdep.c

Log Message:
It's completely bogus to pass physmem (i.e. the memory size) as the
"start" parameter to uvm_page_physload().  I guess it never exploded
only because it's the correct "avail_start" that is used.


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/sys/arch/landisk/landisk/machdep.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/landisk/landisk/machdep.c
diff -u src/sys/arch/landisk/landisk/machdep.c:1.20 src/sys/arch/landisk/landisk/machdep.c:1.21
--- src/sys/arch/landisk/landisk/machdep.c:1.20	Sat Dec 17 01:32:22 2016
+++ src/sys/arch/landisk/landisk/machdep.c	Thu Feb  2 21:11:25 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: machdep.c,v 1.20 2016/12/17 01:32:22 uwe Exp $	*/
+/*	$NetBSD: machdep.c,v 1.21 2017/02/02 21:11:25 uwe Exp $	*/
 
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -65,7 +65,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.20 2016/12/17 01:32:22 uwe Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.21 2017/02/02 21:11:25 uwe Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -219,7 +219,7 @@ landisk_startup(int howto, void *bi)
 	physmem = atop(IOM_RAM_SIZE);
 	kernend = atop(round_page(SH3_P1SEG_TO_PHYS(kernend)));
 	uvm_page_physload(
-		physmem, atop(IOM_RAM_BEGIN + IOM_RAM_SIZE),
+		atop(IOM_RAM_BEGIN), atop(IOM_RAM_BEGIN + IOM_RAM_SIZE),
 		kernend, atop(IOM_RAM_BEGIN + IOM_RAM_SIZE),
 		VM_FREELIST_DEFAULT);
 

Reply via email to