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 u?vm_page_physload args are in page.



details:   https://anonhg.NetBSD.org/src/rev/ef4cf0036d04
branches:  trunk
changeset: 467349:ef4cf0036d04
user:      minoura <minoura%NetBSD.org@localhost>
date:      Tue Mar 23 15:55:43 1999 +0000

description:
u?vm_page_physload args are in page.

diffstat:

 sys/arch/x68k/x68k/machdep.c |  16 ++++++++++------
 1 files changed, 10 insertions(+), 6 deletions(-)

diffs (40 lines):

diff -r 10d31bd00ab2 -r ef4cf0036d04 sys/arch/x68k/x68k/machdep.c
--- a/sys/arch/x68k/x68k/machdep.c      Tue Mar 23 15:48:19 1999 +0000
+++ b/sys/arch/x68k/x68k/machdep.c      Tue Mar 23 15:55:43 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.53 1999/03/23 04:18:50 minoura Exp $     */
+/*     $NetBSD: machdep.c,v 1.54 1999/03/23 15:55:43 minoura Exp $     */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -1389,8 +1389,12 @@
 }
 
 #ifdef EXTENDED_MEMORY
-static int em_debug = 1;
+#ifdef EM_DEBUG
+static int em_debug = 0;
 #define DPRINTF(str) do{ if (em_debug) printf str; } while (0);
+#else
+#define DPRINTF(str)
+#endif
 
 static struct memlist {
        caddr_t base;
@@ -1565,12 +1569,12 @@
                }
                if ((u_long)mlist[i].base < h) {
 #ifdef UVM
-                       uvm_page_physload((vaddr_t)mlist[i].base, h,
-                                         (vaddr_t)mlist[i].base, h,
+                       uvm_page_physload(atop(mlist[i].base), atop(h),
+                                         atop(mlist[i].base), atop(h),
                                          VM_FREELIST_DEFAULT);
 #else  /* not UVM */
-                       vm_page_physload((vaddr_t)mlist[i].base, h,
-                                        (vaddr_t)mlist[i].base, h);
+                       vm_page_physload(atop(mlist[i].base), atop(h),
+                                        atop(mlist[i].base), atop(h));
 #endif
                        mem_size += h - (u_long) mlist[i].base;
                }



Home | Main Index | Thread Index | Old Index