Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/yamt-km]: src/sys/arch/playstation2/playstation2 convert arch/playstatio...
details: https://anonhg.NetBSD.org/src/rev/b852a458de38
branches: yamt-km
changeset: 573318:b852a458de38
user: yamt <yamt%NetBSD.org@localhost>
date: Mon Jan 31 12:23:23 2005 +0000
description:
convert arch/playstation2 to new apis.
diffstat:
sys/arch/playstation2/playstation2/bus_dma.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diffs (38 lines):
diff -r ed871a51189b -r b852a458de38 sys/arch/playstation2/playstation2/bus_dma.c
--- a/sys/arch/playstation2/playstation2/bus_dma.c Mon Jan 31 12:22:05 2005 +0000
+++ b/sys/arch/playstation2/playstation2/bus_dma.c Mon Jan 31 12:23:23 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bus_dma.c,v 1.9 2004/11/28 17:34:46 thorpej Exp $ */
+/* $NetBSD: bus_dma.c,v 1.9.6.1 2005/01/31 12:23:23 yamt Exp $ */
/*
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.9 2004/11/28 17:34:46 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.9.6.1 2005/01/31 12:23:23 yamt Exp $");
#include <sys/param.h>
#include <sys/malloc.h>
@@ -589,7 +589,7 @@
size = round_page(size);
- va = uvm_km_valloc(kernel_map, size);
+ va = uvm_km_alloc(kernel_map, size, 0, UVM_KMF_VAONLY);
if (va == 0)
return (ENOMEM);
@@ -636,7 +636,9 @@
return;
size = round_page(size);
- uvm_km_free(kernel_map, (vaddr_t)kva, size);
+ pmap_remove(pmap_kernel(), (vaddr_t)kva, (vaddr_t)kva + size);
+ pmap_update(pmap_kernel());
+ uvm_km_free(kernel_map, (vaddr_t)kva, size, UVM_KMF_VAONLY);
}
/*
Home |
Main Index |
Thread Index |
Old Index