Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/yamt-km]: src/sys/arch/cobalt/cobalt use new apis.
details: https://anonhg.NetBSD.org/src/rev/f57b48e3ca6b
branches: yamt-km
changeset: 573327:f57b48e3ca6b
user: yamt <yamt%NetBSD.org@localhost>
date: Fri Feb 11 13:29:10 2005 +0000
description:
use new apis.
diffstat:
sys/arch/cobalt/cobalt/bus.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diffs (38 lines):
diff -r dc5ab05734bd -r f57b48e3ca6b sys/arch/cobalt/cobalt/bus.c
--- a/sys/arch/cobalt/cobalt/bus.c Fri Feb 11 13:27:33 2005 +0000
+++ b/sys/arch/cobalt/cobalt/bus.c Fri Feb 11 13:29:10 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bus.c,v 1.19 2004/11/28 17:34:45 thorpej Exp $ */
+/* $NetBSD: bus.c,v 1.19.6.1 2005/02/11 13:29:10 yamt Exp $ */
/*
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bus.c,v 1.19 2004/11/28 17:34:45 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bus.c,v 1.19.6.1 2005/02/11 13:29:10 yamt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -757,7 +757,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);
@@ -807,7 +807,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