Source-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/src/rev/49317090d2e4
branches:  yamt-km
changeset: 573323:49317090d2e4
user:      yamt <yamt%NetBSD.org@localhost>
date:      Wed Feb 02 12:30:18 2005 +0000

description:
convert arch/sh3 to new apis.

diffstat:

 sys/arch/sh3/sh3/vm_machdep.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 8d9363565ad2 -r 49317090d2e4 sys/arch/sh3/sh3/vm_machdep.c
--- a/sys/arch/sh3/sh3/vm_machdep.c     Wed Feb 02 09:55:30 2005 +0000
+++ b/sys/arch/sh3/sh3/vm_machdep.c     Wed Feb 02 12:30:18 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vm_machdep.c,v 1.46 2005/01/09 17:41:34 tsutsui Exp $  */
+/*     $NetBSD: vm_machdep.c,v 1.46.4.1 2005/02/02 12:30:18 yamt Exp $ */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc. All rights reserved.
@@ -81,7 +81,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.46 2005/01/09 17:41:34 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.46.4.1 2005/02/02 12:30:18 yamt Exp $");
 
 #include "opt_kstack_debug.h"
 
@@ -386,7 +386,7 @@
        faddr = trunc_page((vaddr_t)bp->b_saveaddr = bp->b_data);
        off = (vaddr_t)bp->b_data - faddr;
        len = round_page(off + len);
-       taddr= uvm_km_valloc_wait(phys_map, len);
+       taddr = uvm_km_alloc(phys_map, len, 0, UVM_KMF_VAONLY | UVM_KMF_WAITVA);
        bp->b_data = (caddr_t)(taddr + off);
        /*
         * The region is locked, so we expect that pmap_pte() will return
@@ -431,7 +431,7 @@
        kpmap = vm_map_pmap(phys_map);
        pmap_remove(kpmap, addr, addr + len);
        pmap_update(kpmap);
-       uvm_km_free_wakeup(phys_map, addr, len);
+       uvm_km_free(phys_map, addr, len, UVM_KMF_VAONLY);
        bp->b_data = bp->b_saveaddr;
        bp->b_saveaddr = 0;
 }



Home | Main Index | Thread Index | Old Index