Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mac68k vm_size_t -> vsize_t



details:   https://anonhg.NetBSD.org/src/rev/988bc1024ae2
branches:  trunk
changeset: 471668:988bc1024ae2
user:      scottr <scottr%NetBSD.org@localhost>
date:      Wed Apr 07 06:45:14 1999 +0000

description:
vm_size_t -> vsize_t

diffstat:

 sys/arch/mac68k/dev/grf.c         |   6 +++---
 sys/arch/mac68k/include/vmparam.h |   4 ++--
 sys/arch/mac68k/mac68k/machdep.c  |  10 +++++-----
 3 files changed, 10 insertions(+), 10 deletions(-)

diffs (90 lines):

diff -r 10fcfebbcd84 -r 988bc1024ae2 sys/arch/mac68k/dev/grf.c
--- a/sys/arch/mac68k/dev/grf.c Wed Apr 07 06:30:34 1999 +0000
+++ b/sys/arch/mac68k/dev/grf.c Wed Apr 07 06:45:14 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: grf.c,v 1.60 1999/03/26 22:52:15 ender Exp $   */
+/*     $NetBSD: grf.c,v 1.61 1999/04/07 06:45:15 scottr Exp $  */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -376,7 +376,7 @@
        vn.v_rdev = dev;        /* XXX */
 
        error = uvm_mmap(&p->p_vmspace->vm_map, (vaddr_t *)addrp,
-           (vm_size_t)len, VM_PROT_ALL, VM_PROT_ALL, flags, (caddr_t)&vn, 0);
+           (vsize_t)len, VM_PROT_ALL, VM_PROT_ALL, flags, (caddr_t)&vn, 0);
 
        /* Offset into page: */
        *addrp += (unsigned long)gm->fboff;
@@ -396,7 +396,7 @@
        struct proc *p;
 {
        struct grf_softc *gp;
-       vm_size_t size;
+       vsize_t size;
        int     rv;
 
        gp = grf_cd.cd_devs[GRFUNIT(dev)];
diff -r 10fcfebbcd84 -r 988bc1024ae2 sys/arch/mac68k/include/vmparam.h
--- a/sys/arch/mac68k/include/vmparam.h Wed Apr 07 06:30:34 1999 +0000
+++ b/sys/arch/mac68k/include/vmparam.h Wed Apr 07 06:45:14 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vmparam.h,v 1.20 1999/03/31 14:58:15 scottr Exp $      */
+/*     $NetBSD: vmparam.h,v 1.21 1999/04/07 06:45:14 scottr Exp $      */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -257,7 +257,7 @@
 #define VM_PHYS_SIZE           (USRIOSIZE*CLBYTES)
 
 /* # of kernel PT pages (initial only, can grow dynamically) */
-#define VM_KERNEL_PT_PAGES     ((vm_size_t)2)          /* XXX: SYSPTSIZE */
+#define VM_KERNEL_PT_PAGES     ((vsize_t)2)            /* XXX: SYSPTSIZE */
 
 /* pcb base */
 #define        pcbb(p)         ((u_int)(p)->p_addr)
diff -r 10fcfebbcd84 -r 988bc1024ae2 sys/arch/mac68k/mac68k/machdep.c
--- a/sys/arch/mac68k/mac68k/machdep.c  Wed Apr 07 06:30:34 1999 +0000
+++ b/sys/arch/mac68k/mac68k/machdep.c  Wed Apr 07 06:45:14 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.227 1999/04/01 00:17:47 thorpej Exp $    */
+/*     $NetBSD: machdep.c,v 1.228 1999/04/07 06:45:15 scottr Exp $     */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -362,7 +362,7 @@
        int vers;
        int base, residual;
        vaddr_t minaddr, maxaddr;
-       vm_size_t size = 0;     /* To avoid compiler warning */
+       vsize_t size = 0;       /* To avoid compiler warning */
        int delay;
 
        /*
@@ -480,7 +480,7 @@
         * End of first pass, size has been calculated so allocate memory
         */
        if (firstaddr == 0) {
-               size = (vm_size_t)(v - firstaddr);
+               size = (vsize_t)(v - firstaddr);
                firstaddr = (caddr_t)uvm_km_alloc(kernel_map, round_page(size));
                if (firstaddr == 0)
                        panic("startup: no room for tables");
@@ -489,7 +489,7 @@
        /*
         * End of second pass, addresses have been assigned
         */
-       if ((vm_size_t)(v - firstaddr) != size)
+       if ((vsize_t)(v - firstaddr) != size)
                panic("startup: table size inconsistency");
 
        /*
@@ -505,7 +505,7 @@
        base = bufpages / nbuf;
        residual = bufpages % nbuf;
        for (i = 0; i < nbuf; i++) {
-               vm_size_t curbufsize;
+               vsize_t curbufsize;
                vaddr_t curbuf;
                struct vm_page *pg;
 



Home | Main Index | Thread Index | Old Index