Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/yamt-km]: src/sys/arch/arc/arc convert arch/arc to new apis.
details: https://anonhg.NetBSD.org/src/rev/76efe7b70bb4
branches: yamt-km
changeset: 573314:76efe7b70bb4
user: yamt <yamt%NetBSD.org@localhost>
date: Mon Jan 31 12:16:09 2005 +0000
description:
convert arch/arc to new apis.
diffstat:
sys/arch/arc/arc/bus_dma.c | 10 ++++++----
sys/arch/arc/arc/bus_space_sparse.c | 11 +++++++----
2 files changed, 13 insertions(+), 8 deletions(-)
diffs (77 lines):
diff -r d8b60a331d91 -r 76efe7b70bb4 sys/arch/arc/arc/bus_dma.c
--- a/sys/arch/arc/arc/bus_dma.c Mon Jan 31 12:15:52 2005 +0000
+++ b/sys/arch/arc/arc/bus_dma.c Mon Jan 31 12:16:09 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bus_dma.c,v 1.22 2005/01/22 11:08:18 tsutsui Exp $ */
+/* $NetBSD: bus_dma.c,v 1.22.2.1 2005/01/31 12:16:09 yamt Exp $ */
/* NetBSD: bus_dma.c,v 1.20 2000/01/10 03:24:36 simonb Exp */
/*-
@@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.22 2005/01/22 11:08:18 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.22.2.1 2005/01/31 12:16:09 yamt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -678,7 +678,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;
@@ -726,7 +726,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);
}
/*
diff -r d8b60a331d91 -r 76efe7b70bb4 sys/arch/arc/arc/bus_space_sparse.c
--- a/sys/arch/arc/arc/bus_space_sparse.c Mon Jan 31 12:15:52 2005 +0000
+++ b/sys/arch/arc/arc/bus_space_sparse.c Mon Jan 31 12:16:09 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bus_space_sparse.c,v 1.11 2005/01/22 07:35:33 tsutsui Exp $ */
+/* $NetBSD: bus_space_sparse.c,v 1.11.2.1 2005/01/31 12:16:09 yamt Exp $ */
/* NetBSD: bus_machdep.c,v 1.1 2000/01/26 18:48:00 drochner Exp */
/*-
@@ -46,7 +46,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bus_space_sparse.c,v 1.11 2005/01/22 07:35:33 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bus_space_sparse.c,v 1.11.2.1 2005/01/31 12:16:09 yamt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -119,7 +119,8 @@
MIPS_PHYS_TO_KSEG1(start));
} else {
vaddr_t va,
- vaddr = uvm_km_valloc(kernel_map, (vsize_t)(end - start));
+ vaddr = uvm_km_alloc(kernel_map, (vsize_t)(end - start), 0,
+ UVM_KMF_VAONLY);
if (vaddr == 0)
panic("arc_sparse_bus_space_compose_handle: "
@@ -147,7 +148,9 @@
if (start < MIPS_KSEG2_START) /* KSEG0/KSEG1 */
return 0;
- uvm_km_free(kernel_map, start, end - start);
+ pmap_kremove(start, end - start);
+ pmap_update(pmap_kernel());
+ uvm_km_free(kernel_map, start, end - start, UVM_KMF_VAONLY);
return 0;
}
Home |
Main Index |
Thread Index |
Old Index