Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/yamt-km]: src/sys/arch/macppc/macppc - convert arch/macppc to new apis.
details: https://anonhg.NetBSD.org/src/rev/3b4ca79d20a5
branches: yamt-km
changeset: 573311:3b4ca79d20a5
user: yamt <yamt%NetBSD.org@localhost>
date: Fri Jan 28 13:54:11 2005 +0000
description:
- convert arch/macppc to new apis.
- don't leave page mapping at kva which is being freed.
diffstat:
sys/arch/macppc/macppc/bus_dma.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (37 lines):
diff -r 9bc4e63a33fb -r 3b4ca79d20a5 sys/arch/macppc/macppc/bus_dma.c
--- a/sys/arch/macppc/macppc/bus_dma.c Fri Jan 28 13:52:18 2005 +0000
+++ b/sys/arch/macppc/macppc/bus_dma.c Fri Jan 28 13:54:11 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bus_dma.c,v 1.29 2004/11/28 17:34:46 thorpej Exp $ */
+/* $NetBSD: bus_dma.c,v 1.29.6.1 2005/01/28 13:54:11 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.29 2004/11/28 17:34:46 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.29.6.1 2005/01/28 13:54:11 yamt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -533,7 +533,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);
@@ -572,7 +572,8 @@
size = round_page(size);
- uvm_km_free(kernel_map, (vaddr_t)kva, size);
+ pmap_kremove((vaddr_t)kva, size);
+ uvm_km_free(kernel_map, (vaddr_t)kva, size, UVM_KMF_VAONLY);
}
/*
Home |
Main Index |
Thread Index |
Old Index