Source-Changes-HG archive

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

[src/yamt-km]: src/sys/arch/sparc64/sparc64 convert arch/sparc64 to new apis.



details:   https://anonhg.NetBSD.org/src/rev/84a19b313be5
branches:  yamt-km
changeset: 573298:84a19b313be5
user:      yamt <yamt%NetBSD.org@localhost>
date:      Wed Jan 26 11:55:08 2005 +0000

description:
convert arch/sparc64 to new apis.

diffstat:

 sys/arch/sparc64/sparc64/cpu.c        |  6 +++---
 sys/arch/sparc64/sparc64/pmap.c       |  6 +++---
 sys/arch/sparc64/sparc64/vm_machdep.c |  8 ++++----
 3 files changed, 10 insertions(+), 10 deletions(-)

diffs (90 lines):

diff -r 6a6a78b496a4 -r 84a19b313be5 sys/arch/sparc64/sparc64/cpu.c
--- a/sys/arch/sparc64/sparc64/cpu.c    Wed Jan 26 09:20:45 2005 +0000
+++ b/sys/arch/sparc64/sparc64/cpu.c    Wed Jan 26 11:55:08 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.c,v 1.38 2004/07/02 02:50:25 petrov Exp $ */
+/*     $NetBSD: cpu.c,v 1.38.6.1 2005/01/26 11:55:08 yamt Exp $ */
 
 /*
  * Copyright (c) 1996
@@ -52,7 +52,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.38 2004/07/02 02:50:25 petrov Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.38.6.1 2005/01/26 11:55:08 yamt Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -124,7 +124,7 @@
                        return cpi;
 
        /* Allocate the aligned VA and determine the size. */
-       va = uvm_km_valloc_align(kernel_map, sz, sz);
+       va = uvm_km_alloc(kernel_map, sz, sz, UVM_KMF_VAONLY);
        if (!va)
                panic("alloc_cpuinfo: no virtual space");
        va0 = va;
diff -r 6a6a78b496a4 -r 84a19b313be5 sys/arch/sparc64/sparc64/pmap.c
--- a/sys/arch/sparc64/sparc64/pmap.c   Wed Jan 26 09:20:45 2005 +0000
+++ b/sys/arch/sparc64/sparc64/pmap.c   Wed Jan 26 11:55:08 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.159 2004/12/03 01:54:14 chs Exp $   */
+/*     $NetBSD: pmap.c,v 1.159.6.1 2005/01/26 11:55:08 yamt Exp $      */
 /*
  *
  * Copyright (C) 1996-1999 Eduardo Horvath.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.159 2004/12/03 01:54:14 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.159.6.1 2005/01/26 11:55:08 yamt Exp $");
 
 #undef NO_VCACHE /* Don't forget the locked TLB in dostart */
 #define        HWREF
@@ -1355,7 +1355,7 @@
                (paddr_t)PAGE_SIZE, (paddr_t)0, &pglist, 1, 0) != 0)
                panic("pmap_init: no memory");
 
-       va = uvm_km_valloc(kernel_map, size);
+       va = uvm_km_alloc(kernel_map, size, 0, UVM_KMF_VAONLY);
        if (va == 0)
                panic("pmap_init: no memory");
 
diff -r 6a6a78b496a4 -r 84a19b313be5 sys/arch/sparc64/sparc64/vm_machdep.c
--- a/sys/arch/sparc64/sparc64/vm_machdep.c     Wed Jan 26 09:20:45 2005 +0000
+++ b/sys/arch/sparc64/sparc64/vm_machdep.c     Wed Jan 26 11:55:08 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vm_machdep.c,v 1.57 2004/09/17 14:11:22 skrll Exp $ */
+/*     $NetBSD: vm_machdep.c,v 1.57.6.1 2005/01/26 11:55:08 yamt Exp $ */
 
 /*
  * Copyright (c) 1996-2002 Eduardo Horvath.  All rights reserved.
@@ -50,7 +50,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.57 2004/09/17 14:11:22 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.57.6.1 2005/01/26 11:55:08 yamt Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -94,7 +94,7 @@
        uva = trunc_page((vaddr_t)bp->b_data);
        off = (vaddr_t)bp->b_data - uva;
        len = round_page(off + len);
-       kva = uvm_km_valloc_wait(kernel_map, len);
+       kva = uvm_km_alloc(kernel_map, len, 0, UVM_KMF_VAONLY | UVM_KMF_WAITVA);
        bp->b_data = (caddr_t)(kva + off);
 
        upmap = vm_map_pmap(&bp->b_proc->p_vmspace->vm_map);
@@ -130,7 +130,7 @@
        off = (vaddr_t)bp->b_data - kva;
        len = round_page(off + len);
        pmap_kremove(kva, len);
-       uvm_km_free_wakeup(kernel_map, kva, len);
+       uvm_km_free(kernel_map, kva, len, UVM_KMF_VAONLY);
        bp->b_data = bp->b_saveaddr;
        bp->b_saveaddr = NULL;
 }



Home | Main Index | Thread Index | Old Index