Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x68k/x68k mem_exists was called with wrong 2nd argu...



details:   https://anonhg.NetBSD.org/src/rev/e62fc08ae278
branches:  trunk
changeset: 472714:e62fc08ae278
user:      minoura <minoura%NetBSD.org@localhost>
date:      Wed May 05 13:38:51 1999 +0000

description:
mem_exists was called with wrong 2nd argument.
Because of this, >12MB high memory was not detected.

diffstat:

 sys/arch/x68k/x68k/machdep.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (32 lines):

diff -r 32e659c0b361 -r e62fc08ae278 sys/arch/x68k/x68k/machdep.c
--- a/sys/arch/x68k/x68k/machdep.c      Wed May 05 12:36:40 1999 +0000
+++ b/sys/arch/x68k/x68k/machdep.c      Wed May 05 13:38:51 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.64 1999/04/28 16:17:42 minoura Exp $     */
+/*     $NetBSD: machdep.c,v 1.65 1999/05/05 13:38:51 minoura Exp $     */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -1387,6 +1387,7 @@
        psize_t s, min, max;
        struct memlist *mlist = memlist;
        u_long h;
+       int basemax = ctob(physmem);
 
        /*
         * VM system is not started yet.  Use the first and second avalable
@@ -1421,12 +1422,12 @@
                 * But some type of extended memory is in 32bit address space.
                 * Check whether.
                 */
-               if (!mem_exists(mlist[i].base, avail_end))
+               if (!mem_exists(mlist[i].base, basemax))
                        continue;
                h = 0;
                /* range check */
                for (s = min; s <= max; s += 0x00100000) {
-                       if (!mem_exists(mlist[i].base + s - 4, h))
+                       if (!mem_exists(mlist[i].base + s - 4, basemax))
                                break;
                        h = (u_long)(mlist[i].base + s);
                }



Home | Main Index | Thread Index | Old Index