Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/yamt-km]: src/sys/arch/mac68k/mac68k - use new apis.
details: https://anonhg.NetBSD.org/src/rev/b2b3aa0b3a6a
branches: yamt-km
changeset: 573331:b2b3aa0b3a6a
user: yamt <yamt%NetBSD.org@localhost>
date: Fri Feb 11 14:02:18 2005 +0000
description:
- use new apis.
- don't leave page mapped at kva being freed.
diffstat:
sys/arch/mac68k/mac68k/bus_space.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (37 lines):
diff -r ff2bdb77122d -r b2b3aa0b3a6a sys/arch/mac68k/mac68k/bus_space.c
--- a/sys/arch/mac68k/mac68k/bus_space.c Fri Feb 11 13:59:39 2005 +0000
+++ b/sys/arch/mac68k/mac68k/bus_space.c Fri Feb 11 14:02:18 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bus_space.c,v 1.25 2005/01/15 16:00:59 chs Exp $ */
+/* $NetBSD: bus_space.c,v 1.25.4.1 2005/02/11 14:02:18 yamt Exp $ */
/*-
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bus_space.c,v 1.25 2005/01/15 16:00:59 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bus_space.c,v 1.25.4.1 2005/02/11 14:02:18 yamt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -76,7 +76,7 @@
panic("bus_mem_add_mapping: overflow");
#endif
- va = uvm_km_valloc(kernel_map, endpa - pa);
+ va = uvm_km_alloc(kernel_map, endpa - pa, 0, UVM_KMF_VAONLY);
if (va == 0)
return (ENOMEM);
@@ -243,7 +243,8 @@
/*
* Free the kernel virtual mapping.
*/
- uvm_km_free(kernel_map, va, endva - va);
+ pmap_kremove(va, endva - va);
+ uvm_km_free(kernel_map, va, endva - va, UVM_KMF_VAONLY);
if (extent_free(iomem_ex, bpa, size,
EX_NOWAIT | (iomem_malloc_safe ? EX_MALLOCOK : 0))) {
Home |
Main Index |
Thread Index |
Old Index