Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/pmax/pmax Fix memsize_scan() - cut and pasted code ...



details:   https://anonhg.NetBSD.org/src/rev/924a0a66da61
branches:  trunk
changeset: 514219:924a0a66da61
user:      mhitch <mhitch%NetBSD.org@localhost>
date:      Sun Aug 26 05:16:52 2001 +0000

description:
Fix memsize_scan() - cut and pasted code can't use physmem because it hasn't
been set yet.

diffstat:

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

diffs (27 lines):

diff -r 779eae310b11 -r 924a0a66da61 sys/arch/pmax/pmax/machdep.c
--- a/sys/arch/pmax/pmax/machdep.c      Sun Aug 26 02:50:37 2001 +0000
+++ b/sys/arch/pmax/pmax/machdep.c      Sun Aug 26 05:16:52 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.194 2001/08/24 15:33:16 mhitch Exp $     */
+/*     $NetBSD: machdep.c,v 1.195 2001/08/26 05:16:52 mhitch Exp $     */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -43,7 +43,7 @@
  */
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.194 2001/08/24 15:33:16 mhitch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.195 2001/08/26 05:16:52 mhitch Exp $");
 
 #include "fs_mfs.h"
 #include "opt_ddb.h"
@@ -656,7 +656,7 @@
         * mem cluster array.
         */
        mem_clusters[0].start = 0;              /* XXX is this correct? */
-       mem_clusters[0].size  = ctob(physmem);
+       mem_clusters[0].size  = ctob(mem);
        mem_cluster_cnt = 1;
 
        /* clear any memory error conditions possibly caused by probe */



Home | Main Index | Thread Index | Old Index