Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/landisk/landisk It's completely bogus to pass physm...



details:   https://anonhg.NetBSD.org/src/rev/c79d7396eb96
branches:  trunk
changeset: 821367:c79d7396eb96
user:      uwe <uwe%NetBSD.org@localhost>
date:      Thu Feb 02 21:11:25 2017 +0000

description:
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.

diffstat:

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

diffs (27 lines):

diff -r 463b7bb02385 -r c79d7396eb96 sys/arch/landisk/landisk/machdep.c
--- a/sys/arch/landisk/landisk/machdep.c        Thu Feb 02 20:49:55 2017 +0000
+++ b/sys/arch/landisk/landisk/machdep.c        Thu Feb 02 21:11:25 2017 +0000
@@ -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 @@
        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);
 



Home | Main Index | Thread Index | Old Index