Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/yamt-km]: src/sys/arch/hpcmips/hpcmips convert arch/hpcmips to new apis.
details: https://anonhg.NetBSD.org/src/rev/8585ea5f677c
branches: yamt-km
changeset: 573301:8585ea5f677c
user: yamt <yamt%NetBSD.org@localhost>
date: Wed Jan 26 11:58:53 2005 +0000
description:
convert arch/hpcmips to new apis.
diffstat:
sys/arch/hpcmips/hpcmips/bus_dma.c | 10 ++++++----
sys/arch/hpcmips/hpcmips/bus_space.c | 7 ++++---
2 files changed, 10 insertions(+), 7 deletions(-)
diffs (66 lines):
diff -r d6851498f1fd -r 8585ea5f677c sys/arch/hpcmips/hpcmips/bus_dma.c
--- a/sys/arch/hpcmips/hpcmips/bus_dma.c Wed Jan 26 11:57:30 2005 +0000
+++ b/sys/arch/hpcmips/hpcmips/bus_dma.c Wed Jan 26 11:58:53 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bus_dma.c,v 1.22 2004/11/28 17:34:45 thorpej Exp $ */
+/* $NetBSD: bus_dma.c,v 1.22.6.1 2005/01/26 11:58:53 yamt Exp $ */
/*-
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.22 2004/11/28 17:34:45 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.22.6.1 2005/01/26 11:58:53 yamt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -644,7 +644,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);
@@ -691,7 +691,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 d6851498f1fd -r 8585ea5f677c sys/arch/hpcmips/hpcmips/bus_space.c
--- a/sys/arch/hpcmips/hpcmips/bus_space.c Wed Jan 26 11:57:30 2005 +0000
+++ b/sys/arch/hpcmips/hpcmips/bus_space.c Wed Jan 26 11:58:53 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bus_space.c,v 1.22 2003/07/15 02:29:31 lukem Exp $ */
+/* $NetBSD: bus_space.c,v 1.22.10.1 2005/01/26 11:58:53 yamt Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bus_space.c,v 1.22 2003/07/15 02:29:31 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bus_space.c,v 1.22.10.1 2005/01/26 11:58:53 yamt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -206,7 +206,8 @@
pa = mips_trunc_page(t->base);
endpa = mips_round_page(t->base + t->size);
- if (!(va = uvm_km_valloc(kernel_map, endpa - pa))) {
+ if (!(va = uvm_km_alloc(kernel_map, endpa - pa, 0,
+ UVM_KMF_VAONLY))) {
panic("hpcmips_init_bus_space_extent:"
"can't allocate kernel virtual");
}
Home |
Main Index |
Thread Index |
Old Index